[url]http://liangruijun.blog.51cto.com/3061169/647456/[/url]
[url]http://blog.csdn.net/carson_ho/article/details/52693322[/url]
webView = (WebView) findViewById(R.id.myweb);
webView.loadUrl("file:///android_asset/location.html");
webView.setWebViewClient(new WebViewClient(){
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
// TODO Auto-generated method stub
//返回值是true的时候控制去WebView打开,为false调用系统浏览器或第三方浏览器
view.loadUrl(url);
return true;
}
});
[url]http://blog.csdn.net/carson_ho/article/details/52693322[/url]
webView = (WebView) findViewById(R.id.myweb);
webView.loadUrl("file:///android_asset/location.html");
webView.setWebViewClient(new WebViewClient(){
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
// TODO Auto-generated method stub
//返回值是true的时候控制去WebView打开,为false调用系统浏览器或第三方浏览器
view.loadUrl(url);
return true;
}
});