0
        view.setFocusableInTouchMode(true);
        view.setNetworkAvailable(true);
        view.setWebChromeClient(new MyWebChromeClient());
 
        WebSettings settings = view.getSettings();
        settings.setJavaScriptCanOpenWindowsAutomatically(true);
        settings.setSupportMultipleWindows(true);
        settings.setBuiltInZoomControls(true);
        settings.setJavaScriptEnabled(true);
        settings.setAppCacheEnabled(true);
        settings.setAppCacheMaxSize(10 * 1024 * 1024);
        settings.setAppCachePath("");
        settings.setDatabaseEnabled(true);
        settings.setDomStorageEnabled(true);
        settings.setGeolocationEnabled(true);
        settings.setSaveFormData(false);
        settings.setSavePassword(false);
        settings.setRenderPriority(WebSettings.RenderPriority.HIGH);
        // Flash settings 
        settings.setPluginState(WebSettings.PluginState.ON);
 
        // Geo location settings 
        settings.setGeolocationEnabled(true);
        settings.setGeolocationDatabasePath("/data/data/selendroid");
      } 
    }); 
  } 
 
  Object injectJavascript(String toExecute, boolean isAsync, Object... args) {
Stop searching for code, let great code find you!  Add Codota to your java IDE