为js添加一个线程即可
@JavascriptInterface
public void callChangeStartTime(){
runOnUiThread(new Runnable() {
@Override
public void run() {
String call = "javascript:javaca(' 123 ')";
webView.loadUrl(call);
}
});
}
为js添加一个线程即可
@JavascriptInterface
public void callChangeStartTime(){
runOnUiThread(new Runnable() {
@Override
public void run() {
String call = "javascript:javaca(' 123 ')";
webView.loadUrl(call);
}
});
}