I have an application that makes use of the Android WebView, as well as some JavaScript. When my WebViewClient calls onPageFinished(), I alert my JavaScript to run
onPageFinished()
After some reading,another solution has occured. in java code, we can use
new Handler().post(new Runnable(){ @Override public void run(){ webview.loadUrl("...") } });
add it to QueueMessage,and delayed the js to execute,and it works.