The only way to get the webview of this application to load a Web page without calling an external browser is to set webviewclient and override Webviewclient's Shouldoverrideurlloading method to return True
Mwebview.setwebviewclient (New Webviewclient () {@Overridepublic Boolean shouldoverrideurlloading (WebView view, String URL) {//TODO auto-generated method Stubview.loadurl (URL); return true;}});
Cause: The default implementation of the Shouldoverrideurlloading method for Webviewclient is to return false directly:
/** 。。。。。。。 * @param view the WebView is initiating the callback. * @param url The URL to is loaded. * @return True If the host application wants to leave the current WebView * and handle the URL itself, otherwise r Eturn false. * /public boolean shouldoverrideurlloading (WebView view, String URL) { return false; }
"Android" only allows the webview of the application to load Web pages without invoking an external browser