Android WebView选择本地文件上传
2016-03-25 16:11
489 查看
This sample demonstrate android webview choose file to upload.
I just implement the client code ,the server code of receiver the file is not implemented.
First of all, you should build the server code by your eclipse(server code wrote by java).
Then update the ip of url(get ip mac command
http://
Eventually, Run the android code on your device or emulator.
![](http://img.blog.csdn.net/20160325161714006)
Look below gif(android4.4):
![](http://img.blog.csdn.net/20160325160240125)
file-upload-in-webview
talk is cheap show you the code
I just implement the client code ,the server code of receiver the file is not implemented.
First of all, you should build the server code by your eclipse(server code wrote by java).
Then update the ip of url(get ip mac command
ifconfigwindows command
ipconfig).
http://
192.168.1.109:8080/AndroidMvvmServer/upload
Eventually, Run the android code on your device or emulator.
1. Function :
android webview choose file to upload2. Android Version
This sample has test in Android3.0、Android4.0、Android 5.0、Android6.03. Bug
In the android4.4 version , the web page canot get the right file name if you choose file fromPhotonot
file manager. However it works in lolipop.
Look below gif(android4.4):
Referenced document
chromium-webview-samplesfile-upload-in-webview
talk is cheap show you the code
相关文章推荐
- applicationContext.xml详解
- Android WebView选择本地文件上传
- android inflater的用法
- Android开发实践:使用Service还是Thread
- android 缓存Bitmap 使用内存缓存
- Android aidl Binder框架浅析
- ios数据缓存方法
- iOS 开发好用工具
- iOS程序猿之毛玻璃效果
- [Android]static变量的生命周期
- android学习之intent跳转一
- iOS中数组遍历的方法及比较
- IOS锁定屏幕旋转
- IOS锁定屏幕旋转
- cocos2dx 图片加入游戏后会模糊
- Android的线程和线程池
- 关于手机app直播的解决方案
- Android实现插件化(热加载)和插件加密
- 解决Android-PullToRefresh模块引用问题
- Android Binder设计与实现 - 设计篇