There are times when the site that we are requesting will go directly to a location, which will either load the page that is being redirected to the full screen browser, or pop up the browser selection (in addition to the system, you have installed your own other browser).
So the solution to the principle is to jump in the webview.
Method One:
Mywebview.setwebviewclient (New Webviewclient () {
public boolean shouldoverrideurlloading (WebView view, String URL)
{
Override this method to indicate that clicking the link inside the page
Or in the current WebView jump, do not jump to the browser side
View.loadurl (URL);
return true;
}
}
Method Two:
Private class Diywebviewclient Extends webviewclient
{
public boolean shouldoverrideurlloading (WebView view,string URL)
{
View.loadurl (URL);
return true;
}
}
Mywebview.setwebviewclient (New Diywebviewclient ());
Reproduced
http://blog.csdn.net/lieri111/article/details/8213069