I have following code in my WebView
<script src="remote src" param1="value1" param2="value2" ... />;
When it runs on Androids, lower than Kitkat, I use typical
webView.loadDataWithBaseURL(..)
and script works fine. But, as we know, in KitKat WebView had absolutely changed, and scripts should be run as
webView.evaluateJavascript(script, callback);
and now is very unclear how to run my script, which is rendered with the rest of the page, in KitKat.
webView.getSettings().setJavaScriptEnabled(true)?loadDataWithBseURL()scenario, is the string you are passing into it literally the<script>tag that you have shown?