can't open file chooser in WebView Android 4.4.2 using WebChromeClient

后端 未结 4 926
予麋鹿
予麋鹿 2021-01-06 06:03

In my webview by clicking \"Choose File\" button In samsung 7 inch tablet I want to open a File Browser, but I can\'t open this in Android Versi

4条回答
  •  青春惊慌失措
    2021-01-06 06:36

    Try with

    // Work on Android 4.4.2 Zenfone 5
    public void showFileChooser(ValueCallback filePathCallback,
                String acceptType, boolean paramBoolean){
             // TODO Auto-generated method stub
    }
    

    and...

    public void showFileChooser(ValueCallback uploadFileCallback,
            FileChooserParams fileChooserParams) {
            // TODO Auto-generated method stub
    }
    link : http://src.chromium.org/svn/trunk/src/android_webview/java/src/org/chromium/android_webview/AwContentsClient.java
    

    I hope this helpful to you!

提交回复
热议问题