webview app: choosing a file doesn’t work
Follow the stated code below : public class MainActivity extends Activity { private WebView webView; private String urlStart = “http://www.example.com/mobile/”; private static final int FILECHOOSER_RESULTCODE = 2888; private ValueCallback<Uri> mUploadMessage; //Camera parameters private Uri mCapturedImageURI = null; @SuppressLint(“SetJavaScriptEnabled”) @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); webView = (WebView) findViewById(R.id.webView); webView.getSettings().setJavaScriptEnabled(true); webView.getSettings().setLoadWithOverviewMode(true); webView.getSettings().setAllowFileAccess(true); webView.loadUrl(urlStart); webView.setWebChromeClient(new … Read more