android Intent打开URL链接
16lz
2021-01-23
一、打开链接
- 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);
更多相关文章
- 网页链接拉起Unity Android和iOS APP
- android 网络图片与网页读取
- Android -- 文字设置超链接
- android webview 中处理网页中的400、404、500等错误
- ADB和Fastboot最新版的谷歌官方下载链接
- 【实战】android网页源代码查看器
- Android各版本源码下载链接
- Android Studio 关联项目软链接
- Android 部分内容设置颜色、字体、超链接、图片