We know Android studio can get invoke the html javascript since Android API17,
ERPWebViewJsInterface erpWebViewJsInterface = new ERPWebViewJsInterface(this);
erpWebViewJsInterface.setmWebViewJSCallBack(this);
webView.addJavascriptInterface(erpWebViewJsInterface, WebViewParams.WEBVIEWW_JS_FLAG);
Sometimes, we may need return data to html ,But the Javascript how to get the data?
I think, maybe we can in javascript define resultCallBack, when we get the result, we can invoke the Javascript method!
Do you have the better method! get the Android method return data?