天蓬老师2017-04-17 17:31:18
//代码如下
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;
}
});
希望对你有用,以上