Kitkat-WebView
==============
A solution for Android 4.4 (KitKat) webiew issue :
1. openFileChooser not called when <input type="file"> is clicked on android 4.4 webview
https://code.google.com/p/android/issues/detail?id=62220
2. Android 4.4 WebView cannot load "content://" urls in html page
https://code.google.com/p/android/issues/detail?id=63033
Note : https://developer.chrome.com/multidevice/webview/overview
If you are currently using content:// URLs to load files from a content provider in your application, note that these URLs only work when accessed from local content. That is, web content hosted outside your application is not allowed to access files built into your application.
Solution :
1. Add an element in web page, when click the element,
use javascript call app function to choose images.
2. Convert choosed images to base64 string, and pass it to web page.
3. Show image : img.src="data:image/png;base64,xxxxx base64 string form app xxxxx"
4. Post the base64 string to your server and decode it, then your can save image.
This is my solution for Android 4.4(Kitkat) webview,
if you have other solution, please tell me, thx.
henrychuang.tw@gmail.com
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
Kitkat-WebView-master.zip (93个子文件)
Kitkat-WebView-master
.project 816B
project.properties 609B
src
henrychuang
tw
kitkatwebview
JSCallFun.java 638B
GalleryAdapter.java 7KB
ImageSelectActivity.java 7KB
ImagePath.java 339B
ImageData.java 1002B
Main.java 3KB
AndroidManifest.xml 1KB
res
drawable-hdpi
ic_launcher.png 10KB
values-v11
styles.xml 321B
drawable-mdpi
ic_launcher.png 5KB
layout
gallery_item.xml 751B
image_selector.xml 2KB
main.xml 482B
drawable-xxhdpi
ic_launcher.png 34KB
checkbox.xml 374B
checkbox_normal.png 215B
checkbox_selected.png 551B
drawable-xhdpi
ic_launcher.png 17KB
values
strings.xml 219B
styles.xml 682B
dimens.xml 191B
values-v14
styles.xml 378B
.settings
org.eclipse.jdt.core.prefs 173B
assets
KitkatWebview.htm 2KB
README.md 1KB
gen
henrychuang
tw
kitkatwebview
BuildConfig.java 170B
R.java 161KB
android
support
v7
appcompat
R.java 39KB
libs
android-support-v4.jar 607KB
gson-2.2.2.jar 185KB
.classpath 466B
.gitignore 271B
proguard-project.txt 781B
ic_launcher-web.png 304KB
bin
resources.ap_ 305KB
R.txt 29KB
kitkatWebview.apk 764KB
classes
henrychuang
tw
kitkatwebview
R$layout.class 2KB
R$style.class 9KB
R$dimen.class 1KB
ImageSelectActivity$3.class 2KB
ImageSelectActivity$4.class 2KB
ImagePath.class 642B
BuildConfig.class 365B
R$drawable.class 5KB
R$attr.class 5KB
JSCallFun.class 1KB
Main.class 5KB
R$bool.class 763B
R$integer.class 445B
GalleryAdapter.class 7KB
Main$1.class 708B
GalleryAdapter$BitmapWorkerTask.class 3KB
GalleryAdapter$1.class 1KB
ImageSelectActivity$1.class 2KB
ImageData$1.class 1KB
R$id.class 3KB
R$anim.class 629B
ImageSelectActivity.class 9KB
R.class 1015B
R$string.class 1KB
ImageSelectActivity$2.class 2KB
ImageData.class 2KB
R$color.class 594B
R$styleable.class 6KB
android
support
v7
appcompat
R$layout.class 2KB
R$style.class 9KB
R$dimen.class 1KB
R$drawable.class 5KB
R$attr.class 5KB
R$bool.class 763B
R$integer.class 445B
R$id.class 2KB
R$anim.class 629B
R.class 1015B
R$string.class 1KB
R$color.class 594B
R$styleable.class 6KB
AndroidManifest.xml 1KB
dexedLibs
appcompat_v7_2-88b9baaba7a29ee5901b170904d8d3cf.jar 166B
android-support-v4-87fac2cc002056526dbaa49cd58e89aa.jar 227KB
gson-2.2.2-0648e84fa0882060ed32258f8e4bae40.jar 67KB
android-support-v7-appcompat-12b58bc9727331fb48de359eff48eb50.jar 145KB
jarlist.cache 355B
res
crunch
drawable-hdpi
ic_launcher.png 8KB
drawable-mdpi
ic_launcher.png 4KB
drawable-xxhdpi
ic_launcher.png 25KB
checkbox_normal.png 136B
checkbox_selected.png 379B
drawable-xhdpi
ic_launcher.png 13KB
classes.dex 1.7MB
共 93 条
- 1
吃苹果的猫公子
- 粉丝: 19
- 资源: 9
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Jurassic Pack Vol. II Dinosaurs 侏罗纪包卷恐龙二号Unity游戏模型资源unitypackage
- Jurassic Pack Vol. III Dinosaurs 侏罗纪包卷恐龙三号Unity游戏模型资源unitypackag
- Ultimate Seating Controller 终极座椅控制器Unity游戏开发插件资源unitypackage
- 什么是人工智能-关于人工智能的相关介绍说明
- Figma Converter for Unity适用Unity的Figma转换器Unity游戏开发插件unitypackage
- Creepy Animatronic Anims 令人毛骨悚然的电子动画Unity游戏动画插件资源unitypackage
- Rankings & Leaderboards 排名和排行榜Unity游戏开发插件资源unitypackage
- Semantic Color Palette 语义调色板Unity游戏开发插件资源unitypackage
- Low Poly Nature:Lush and Diverse Environments低聚自然郁郁Unity低多边形模型资源
- voc数据集是什么-我们如何使用voc数据集
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页