Android: Javascript not working in WebView

I thought I had the wrong HTML, the wrong file paths, disabled internet connection, setting a WebChromeClient and setting the HTML doc-type to be STRICT.

In the end, I was just missing a vital call to enable it.

Allow JavaScript in your WebView by calling:

m_webview.getSettings().setJavaScriptEnabled(true);

How embarassing =P

tumblr_lmn4a95IkA1qirywio1_400

Source: Using Android’s WebView, WebChromeClient and WebViewClient to load a webpage and display the progress

 
Copyright © Twig's Tech Tips
Theme by BloggerThemes & TopWPThemes Sponsored by iBlogtoBlog