android 调用系统浏览器方法
来源:互联网 发布:北大培文杯网络赛 编辑:程序博客网 时间:2024/05/21 09:55
这里我提供两种调用系统浏览器方法,是我公司项目中某个模块用到的。分享给大家,希望对大家能有所帮助。
1.获取系统自带的浏览器(如下代码操作)
Intent intent=new Intent();
intent.setAction("android.intent.action.VIEW");
Uri CONTENT_URI_BROWSERS = Uri.parse("http://static.nightpalace.cn/1496994313215");
intent.setData(CONTENT_URI_BROWSERS);
intent.setClassName("com.android.browser", "com.android.browser.BrowserActivity");
startActivity(intent);
2.选择手机带的浏览器(带有选择性的)
Intent intent1= new Intent();
intent1.setAction(Intent.ACTION_VIEW);
Uri content_url = Uri.parse("http://static.nightpalace.cn/1496994313215");
intent1.setData(content_url);
startActivity(Intent.createChooser(intent1,getString(R.string.about_cherry_choice_browser)));
阅读全文
2 0
- android 调用系统浏览器方法
- Android调用系统浏览器
- 调用android系统浏览器
- Android调用系统浏览器
- Android 调用系统浏览器
- android调用系统浏览器
- Android调用系统下载文件的方法,不跳浏览器
- Android 调用系统默认浏览器
- Android 调用系统图片浏览器
- 调用系统自带浏览器的方法
- j2me调用系统浏览器的方法
- Android如何调用系统默认浏览器访问
- Android 如何调用系统默认浏览器访问
- Android 调用系统浏览器 出现activitynotfoundexception 解决办法
- android调用系统浏览器和拨打电话
- 浏览器 调用ios/android应用的方法
- android 调用系统铃声方法
- android 调用系统解锁方法
- 网狐荣耀版游戏启动时出现“正在初始化组件”启动失败
- ElasticSearch5.X—模糊查询和获取所有索引字段
- 百度地图的重要部分
- MACD指标使用的一些小技巧
- 联赛前最后一次总结
- android 调用系统浏览器方法
- 使用libcurl访问https
- 哪怕荆棘满路,我们仍无畏前行
- 每个人都能 DIY 的 苹果电脑
- 前端工程师“应试”指南
- jvm-判断对象是否存活的算法
- hdfs du -sk 导致机器load高
- vm上安装 ftp
- 使用日志框架如何输出printStackTrace()的堆栈信息