# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
没有合适的资源?快使用搜索试试~ 我知道了~
Android 与javascript相互调用
共61个文件
class:20个
png:15个
xml:9个
需积分: 9 7 下载量 14 浏览量
2014-08-26
11:16:10
上传
评论
收藏 763KB RAR 举报
温馨提示
Android 与 js 之间的调用Android开发之WebView的使用 WebView与javascript相互调用 .WebView不但可以运行一段HTML代码,还有一个重要特点,就是WebView可以同Javascript互相调用。 通过addJavascriptInterface(Object obj,String interfaceName)方法将一个Java对象绑定到一个Javascript对象中,Javascript对象名就是interfaceName,作用域是Global,这样便可以扩展Javascript的API,获取Android的数据。
资源推荐
资源详情
资源评论
收起资源包目录
Demo10WebView.rar (61个子文件)
Demo10WebView
.project 849B
project.properties 563B
src
com
baway
demowebview
WebChromeClientActivity.java 7KB
WebViewJsDemoActivity.java 2KB
AndroidManifest.xml 1KB
res
drawable-ldpi
ic_launcher.png 1KB
drawable-hdpi
ic_launcher.png 100B
ic_action_search.png 3KB
menu
activity_main.xml 203B
drawable-mdpi
ic_launcher.png 88B
ic_action_search.png 3KB
layout
activity2.xml 937B
js_layout.xml 551B
dialog_layout.xml 556B
activity_main.xml 529B
drawable-xhdpi
ic_launcher.png 2KB
ic_action_search.png 3KB
values
strings.xml 244B
styles.xml 89B
.settings
assets
js
student.js 936B
html
student.html 240B
indext.html 824B
gen
com
baway
demowebview
BuildConfig.java 163B
R.java 2KB
libs
android-support-v4.jar 341KB
.classpath 475B
proguard-project.txt 781B
ic_launcher-web.png 18KB
bin
resources.ap_ 13KB
classes
com
baway
demowebview
R$layout.class 515B
R$style.class 404B
BuildConfig.class 351B
R$drawable.class 456B
WebViewJsDemoActivity$Student.class 1KB
R$attr.class 349B
WebChromeClientActivity$MyWebViewClient.class 2KB
WebChromeClientActivity$MyWebChromeClient$4.class 1KB
WebViewJsDemoActivity.class 2KB
WebChromeClientActivity$MyWebChromeClient.class 5KB
WebChromeClientActivity$MyWebChromeClient$5.class 1KB
R$id.class 625B
WebViewJsDemoActivity$1.class 1KB
WebChromeClientActivity$MyWebChromeClient$1.class 2KB
R.class 652B
R$string.class 522B
WebChromeClientActivity$MyWebChromeClient$2.class 1KB
R$menu.class 406B
WebChromeClientActivity.class 4KB
WebChromeClientActivity$MyWebChromeClient$3.class 1KB
AndroidManifest.xml 1KB
dexedLibs
android-support-v4-0773f44e65c79bfb1cc0992ba564d775.jar 132KB
jarlist.cache 120B
res
crunch
drawable-ldpi
ic_launcher.png 1KB
drawable-hdpi
ic_launcher.png 113B
ic_action_search.png 409B
drawable-mdpi
ic_launcher.png 110B
ic_action_search.png 311B
drawable-xhdpi
ic_launcher.png 2KB
ic_action_search.png 491B
classes.dex 411KB
Demo10WebView.apk 154KB
共 61 条
- 1
资源评论
杨帆启航
- 粉丝: 0
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功