Android 打开URL

打开链接

     Intent it = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.baidu.com"));  
     it.setClassName("com.android.browser", "com.android.browser.BrowserActivity");  
     getContext().startActivity(it);  

打开本地网页

Intent intent=new Intent();   
intent.setAction("android.intent.action.VIEW");   
Uri CONTENT_URI_BROWSERS = Uri.parse("content://com.android.htmlfileprovider/sdcard/123.html");   
intent.setData(CONTENT_URI_BROWSERS);   
intent.setClassName("com.android.browser", "com.android.browser.BrowserActivity");   
startActivity(intent);  
原文地址:https://www.cnblogs.com/zhujiabin/p/5497832.html