I am loading WebView using URL. My URL contains one button which is used to take a photo from mobile either from photo gallery or using the device camera. I have also set the permissions to access the photo gallery. But the button not opens the photo gallery.
Here is my code:
webJobForm.getSettings().setLoadsImagesAutomatically(true);
webJobForm.getSettings().setPluginState(WebSettings.PluginState.ON);
webJobForm.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY);
webJobForm.getSettings().setSupportZoom(true);
webJobForm.getSettings().setBuiltInZoomControls(true);
webJobForm.getSettings().setDisplayZoomControls(true);
webJobForm.getSettings().setLoadWithOverviewMode(true);
webJobForm.setVerticalScrollBarEnabled(true);
webJobForm.setHorizontalScrollBarEnabled(true);
webJobForm.getSettings().setUseWideViewPort(true);
webJobForm.getSettings().setAllowFileAccess(true);
webJobForm.getSettings().setAllowUniversalAccessFromFileURLs(true);
webJobForm.getSettings().setAllowContentAccess(true);
webJobForm.getSettings().setAllowFileAccessFromFileURLs(true);
webJobForm.getSettings().setMediaPlaybackRequiresUserGesture(true);
webJobForm.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
webJobForm.getSettings().setJavaScriptEnabled(true);
webJobForm.setWebChromeClient(new WebChromeClient());
webJobForm.postUrl(bundle.getString("FormUrl"),JobID.getBytes());