# 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中webview和js之间的交互调用
共47个文件
class:17个
png:9个
xml:4个
需积分: 5 1 下载量 201 浏览量
2023-08-16
17:47:18
上传
评论
收藏 266KB RAR 举报
温馨提示
android 4.4 之后的版本,由于Android安全机制的升级,js注入漏洞解决方案,导致之前JS和Android交互的方法失效了,该demo很好的解决了最新版本Android和js之间互相调用的问题,支持最新的Android版本调用,包括华为鸿蒙系统,希望于碰到调用失效的朋友有借鉴和帮助
资源推荐
资源详情
资源评论
收起资源包目录
Android_js交互开发_demo.rar (47个子文件)
Android_js交互开发_demo
ic_launcher-web.png 50KB
project.properties 563B
.classpath 475B
.settings
org.eclipse.jdt.core.prefs 177B
org.eclipse.core.resources.prefs 57B
assets
index.html 812B
error.html 2KB
src
com
okook
androidjs
AndroidAndJs.java 170B
MainActivity.java 6KB
LICENSE 11KB
res
drawable-mdpi
ic_launcher.png 18KB
drawable-xhdpi
ic_launcher.png 18KB
drawable-xxhdpi
ic_launcher.png 18KB
drawable-ldpi
values
strings.xml 180B
layout
activity_main.xml 941B
drawable-hdpi
ic_launcher.png 18KB
proguard-project.txt 781B
bin
classes
com
okook
androidjs
AndroidAndJs.class 436B
MainActivity$1.class 1KB
MainActivity$2$1.class 1KB
R$string.class 440B
R$layout.class 406B
MainActivity$5.class 731B
R$id.class 411B
BuildConfig.class 347B
MainActivity$4.class 3KB
R$attr.class 343B
MainActivity$1$1.class 1KB
MainActivity$3.class 1KB
R$drawable.class 410B
MainActivity.class 4KB
MainActivity$2$2.class 1KB
MainActivity$2.class 2KB
R.class 538B
resources.ap_ 68KB
res
crunch
drawable-mdpi
ic_launcher.png 16KB
drawable-xhdpi
ic_launcher.png 16KB
drawable-xxhdpi
ic_launcher.png 16KB
drawable-hdpi
ic_launcher.png 16KB
java_js_demo.apk 76KB
classes.dex 11KB
dexedLibs
AndroidManifest.xml 1KB
.project 848B
.gitignore 300B
AndroidManifest.xml 1KB
gen
com
okook
androidjs
BuildConfig.java 161B
R.java 808B
共 47 条
- 1
资源评论
哈哈V大侠
- 粉丝: 5
- 资源: 21
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功