我们正在创建一个使用webView的应用程序,它将访问用户需要上传文件的页面。我们在使用Android4.4时遇到问题,其中文件选择器无法打开并且单击上传按钮不会导致任何事情发生。此功能适用于使用openFileChooser方法的早期版本,如下所示:webview.setWebChromeClient(newWebChromeClient(){//Theundocumentedmagicmethodoverride//Eclipsewillswearatyouifyoutrytoput@Overridehere//ForAndroid3.0+publicvoidopenFileCho