0

I try to load a url in my android app, the url is url. The js in the html seems not execute. It can only show a background without charm. Below is my code :

 mWebView.getSettings().setJavaScriptEnabled(true);
 mWebView.getSettings().setDomStorageEnabled(true);
 mWebView.getSettings().setDatabaseEnabled(true);
 mWebView.loadUrl(url)
秃德666
  • 395
  • 1
  • 3
  • 15
  • Possible duplicate of [how to load a url to webview in android?](http://stackoverflow.com/questions/11288611/how-to-load-a-url-to-webview-in-android) – user861594 May 05 '16 at 09:49

1 Answers1

2

Try this,

webView.getSettings().setPluginState(PluginState.ON);
webView.getSettings().setDomStorageEnabled(true);
Sathish Kumar J
  • 4,280
  • 1
  • 20
  • 48