I wan to call a javascript function from an android activity but it doesn\'t seem to work. I have used the android webview function webview.loadUrl(\"javascript:function()\"
It's likely your page isn't fully loaded by the time you're trying to execute the javascript. Can you try:
webView.setWebViewClient(new WebViewClient() { public void onPageFinished(WebView view, String url) { view.loadUrl("javascript:change(i)"); } });