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)
1

1 Answer 1

1

Try this,

webView.getSettings().setPluginState(PluginState.ON);
webView.getSettings().setDomStorageEnabled(true);
Sign up to request clarification or add additional context in comments.

3 Comments

No need for webView.getSettings().setPluginState(WebSettings.PluginState.ON);
thank you very much! But it still doesn't work. it can only load a backgroud. But the chart in the html dones't show me?
thank you for your method, It work ok for me now...Thank you very much

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.