Hi i am loading local html file after handling some javascript alerts on webchromeclient, But after i call webview's loadUrl method my local html page loads very slowly it waits about 20 seconds to load.
Here is my code below:
@Override
public boolean onJsAlert(WebView view, String url, String message,
JsResult result) {
// TODO Auto-generated method stub
result.confirm();
if (message.contains(GeneralConstants.ALERT_LOGIN_TIMUSER)) {
String s[] = message.split(";");
//Set ldap user
view.loadUrl("file:///android_asset/mainMenu.html");
return true;
}
Thanks for any advice.