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()\"
Try to change this :
webview.loadUrl("javascript:change(i)");
to this
webview.loadUrl("javascript:change(" + i +")");
the way you have write it the "i" is not the variable "i" from your java code but just a String named "i".