Webview Android 4.0 File Upload
It's just NOT working. I'm doing this webView.setWebChromeClient(new WebChromeClient() { public void openFileChooser(ValueCallback uploadFile) { Sys
Solution 1:
Parameters for openFileChooser have been updated some times.
For Android 3.0 - 4.0, it is
publicvoidopenFileChooser( ValueCallback<Uri> uploadMsg, String acceptType )
for 4.1,
publicvoid openFileChooser(ValueCallback<Uri> uploadMsg, String acceptType, String capture)
and for 2.x
publicvoidopenFileChooser( ValueCallback<Uri> uploadMsg )
You'll have to add all of them to support any devices between Android 2.0 and 4.1.
Post a Comment for "Webview Android 4.0 File Upload"