android 跳转 系统浏览器的方法
2015-08-25 18:23
323 查看
一、启动android默认浏览器
Intent intent= new Intent();
intent.setAction("android.intent.action.VIEW");
Uri content_url = Uri.parse("http://www.cnblogs.com");
intent.setData(content_url);
startActivity(intent);
如果手机上安装多个浏览器 会弹出选择框选择 选择浏览器
文章转自:http://blog.sina.com.cn/s/blog_6efce07e010142w7.html
Intent intent= new Intent();
intent.setAction("android.intent.action.VIEW");
Uri content_url = Uri.parse("http://www.cnblogs.com");
intent.setData(content_url);
startActivity(intent);
如果手机上安装多个浏览器 会弹出选择框选择 选择浏览器
文章转自:http://blog.sina.com.cn/s/blog_6efce07e010142w7.html
相关文章推荐
- Android 常规任务的高度【schedule】与【scheduleAtFixedRate】差额
- android byte[] 和short[]的转换
- Android Toolbar样式定制详解
- Android Activity生命周期演示程序的例子
- Android 百度地图开发 应用到自己的项目中
- android中跨线程向控件传值的问题
- android代码设置、打开WLAN wifi热点及热点的连接
- Android GridView属性集合
- Android最佳性能实践(二)——分析内存的使用情况
- Android最佳性能实践(一)——合理管理内存
- Android高效加载大图、多图解决方案,有效避免程序OOM
- 【图文】Git学习之十步掌握通过Android Studio整合Git将本地库Push到远程库
- Android最佳性能实践
- Android中图片压缩(质量压缩和尺寸压缩)
- Android中图片压缩(质量压缩和尺寸压缩)
- android:weightSum="2"
- Android应用开发(一):Android平台搭建与开发环境配置
- android 安装 apk 遭遇 java.lang.UnsupportedOperationException: Only file:// URIs are supported
- Android应用开发(一):Android平台搭建与开发环境配置
- [转]Android强制设置横屏或竖屏