Android开发学习笔记:浅谈WebView
http://liangruijun.blog.51cto.com/3061169/647456/
http://blog.csdn.net/carson_ho/article/details/52693322
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;
}
});
猜你喜欢
转载自tangzongyun.iteye.com/blog/2375149
今日推荐
周排行