首页 / 操作系统 / Linux / Android Intent打开URL链接
一、打开链接Intent it = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.linuxidc.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);