Skip to content Skip to sidebar Skip to footer

Enabling Javascript In Webview?

I am trying to get javascript to be enable, i thought i had it right but when i run it on my phone it seems to not load up the javascript. I also am wondering how i can load extern

Solution 1:

   WebView view = (WebView) findViewById(R.id.webview1);
 view = (WebView) findViewById(R.id.webview);
  view .setWebChromeClient(new InredisChromeClient(this));
  view .setWebViewClient(new InredisWebViewClient(this));
  view .clearCache(true);
  view .clearHistory();
  view .getSettings().setJavaScriptEnabled(true);
 view .getSettings().setJavaScriptCanOpenWindowsAutomatically(true);

set these properties


Post a Comment for "Enabling Javascript In Webview?"