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 ifconfig windows 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 upload

2. Android Version

This sample has test in Android3.0、Android4.0、Android 5.0、Android6.0

3. Bug

In the android4.4 version , the web page canot get the right file name if you choose file from Photo not file manager . However it works in lolipop.

Look below gif(android4.4):

Referenced document

  1. chromium-webview-samples
  2. file-upload-in-webview

talk is cheap show you the code

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. android 使用Intent传递数据之剪切板
  2. Android2.2 API 中文文档系列(4) —— Mani
  3. android 开源和一些博客总结
  4. Android(安卓)内存数据库
  5. 改变进度栏的颜色 progress bar 的背景色
  6. Android项目开发一
  7. mac添加android的adb等工具到环境变量
  8. error XA5205: Cannot find `aapt.exe`.
  9. android 中文 api (71) ―― BluetoothServ
  10. 51. (android开发)线性布局、相对布局、