Android的工作室 - 如何上传文件的WebView棒棒堂(是Android 5.0) [英] Android Studio - How to upload files in webview Lollipop (Android 5.0)

查看:253
本文介绍了Android的工作室 - 如何上传文件的WebView棒棒堂(是Android 5.0)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的WebView我的应用程序,它采用的是Android果冻豆做工不错。上传选项不Android的奇巧和棒棒堂的工作。

I am using webview for my app, which is working good in Android Jelly Bean. The upload option is not working in Android KitKat and Lollipop.

我看了一些网上论坛和想通了,文件上传在奇巧版本打破。所以,我认为它不会对奇巧工作。

I read some online forums and figured out that file upload is broken in KitKat version. So, I think that it would not work on KitKat.

不过,我还是想知道,如何调用web视图文件上传选项Android的棒棒糖。

But, I still want to know that how to call the file upload option in Android Lollipop in WebView.

感谢

推荐答案

有关棒棒糖文件上传新的API将在这里详细的https://gauntface.com/blog/2014/10/17/what-you-need-to-know-about-the-webview-in-l

The new api for Lollipop file upload is detailed here https://gauntface.com/blog/2014/10/17/what-you-need-to-know-about-the-webview-in-l

有一个完整的code样品这里的https://github.com/GoogleChrome/chromium-webview-samples/tree/master/input-file-example

There is a full code sample here https://github.com/GoogleChrome/chromium-webview-samples/tree/master/input-file-example

这篇关于Android的工作室 - 如何上传文件的WebView棒棒堂(是Android 5.0)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆