android-4.4-kitkat

HTML file input in android webview (android 4.4, kitkat)

旧城冷巷雨未停 提交于 2019-11-25 19:07:10
I was using the <input type="file"> on the android webview. I got it working thanks to this thread: File Upload in WebView But the accepted answer (or any other) no longer works with android 4.4 kitkat webview. Anybody knows how to fix it? It doesn't work with target 18 either. I've looking some android 4.4 source code and it seems that the WebChromeClient hasn't changed, but I think the setWebChromeClient no longer works on the kitkat webview, or at least not the openFileChooser function. Update 2: There is a simpler plugin to use with phonegap/cordova https://github.com/MaginSoft