Android指定调用系统自带浏览器打开链接
16lz
2021-01-23
Intent intent = new Intent();
intent.setAction(Intent. ACTION_VIEW );
intent.setData(Uri.parse( "http:www.google.com" )); intent.setClassName( "com.android.browser" , "com.android.browser.BrowserActivity" );
startActivity(intent);
也可以调用其它浏览器:
intent.setAction(Intent. ACTION_VIEW );
intent.setData(Uri.parse( "http:www.google.com" )); intent.setClassName( "com.android.browser" , "com.android.browser.BrowserActivity" );
startActivity(intent);
也可以调用其它浏览器:
uc浏览器:"com.uc.browser", "com.uc.browser.ActivityUpdate“
opera:"com.opera.mini.android", "com.opera.mini.android.Browser"
更多相关文章
- android 浏览器怎么支持 window.close() 和window.opener.locati
- 针对Android 平板的海豚浏览器正式版推出
- android超炫的图片浏览器
- Catalog Service - 解析微软微服务架构实例代码
- 介绍一个微软开源项目网站--CodePlex
- 关于asp.net如何获取浏览器访问的IP地址?
- Go语言实现之基于websocket浏览器通知功能
- XML指南——XML 浏览器(Netscape、Explorer)
- 具体分析微软的xml解析器