解决WebView调相机和相册无效的bug

2018-12-19  本文已影响0人  WotYang
webView.setWebChromeClient(new WebChromeClient() {
     @Override
     public boolean onShowFileChooser(WebView webView, ValueCallback<Uri[]> filePathCallback, FileChooserParams fileChooserParams) {
        H5WebViewFragment.this.filePathCallback = filePathCallback;
        showPhotoPopupWindow();
        return true;
        }
};);


filePathCallback.onReceiveValue(Uri[]));
上一篇 下一篇

猜你喜欢

热点阅读