天蓬老师2017-04-17 17:31:18
//The code is as follows
webView.setWebViewClient(new WebViewClient() {
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
view.stopLoading(); //停止加载url
Intent intent = new Intent(XXX.this, WebActivity.class);
startActivity(intent);
return true;
}
});
Hope it’s useful to you, the above