Android浏览器如何打开网页 文章分类:移动开发
一、打开链接

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);

更多相关文章

  1. 指定浏览器访问指定页面(支持UC、Opera、QQ、Dolphin、Skyfire、
  2. TextView显示链接
  3. android点击邮箱链接跳转发送
  4. JS判断Android、iOS或浏览器的多种方法(四种方法)
  5. android 学习链接大集合
  6. Android 打开浏览器的几种方法
  7. Android的ContextMenu(上下文菜单)知识链接汇总

随机推荐

  1. android:versionCode和android:versionNa
  2. 理解 Android Build 系统
  3. 《Android移动应用开发从入门到精通》下
  4. Android仿真器远程登录模式(telnet)
  5. 二、android百度地图定位显示当前位置(an
  6. Android实现全屏显示的方法
  7. Android常用控件六之图片框(ImageView)
  8. 使用Android adb命令来启动Android应用程
  9. Android: Java的ClassLoader和Android的C
  10. [Android] 基于 Linux 命令行构建 Androi