Android指定调用系统自带浏览器打开链接
16lz
2021-12-04
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与JS互调
- Android(安卓)P系统时间更新分析
- Android设备功能之传感器教程篇
- android aidl 进程通信 调用错误
- Android(安卓)单元测试之JUnit和Mockito
- Android中对NFC的实现代码分布在如下几个地方:
- Android(安卓)Camera 使用小结
- android获取mac地址
- 详解 Android(安卓)的 Activity 组件