I am trying to open an html page on webview using loadData method with the string parameter which has the html + javascript code.
But the result is not what I wanted. As I understand it did not load javascript parts even though I enabled javascript.
If it is not possible with webview, is there another way to show my page on android phone which supports javascript codes? Thanks in advance.
This is my related code:
WebView mWebView = (WebView) findViewById(R.id.activity_main_webview);
WebSettings webSettings = mWebView.getSettings();
webSettings.setJavaScriptEnabled(true);
mWebView.loadData(htmlData, "text/html; charset=utf-8", "UTF-8");