一、打开链接
  1. Intent it = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.baidu.com"));
  2. it.setClassName("com.android.browser", "com.android.browser.BrowserActivity");
  3. getContext().startActivity(it);
二、打开本地网页
  1. Intent intent=new Intent();
  2. intent.setAction("android.intent.action.VIEW");
  3. Uri CONTENT_URI_BROWSERS = Uri.parse("content://com.android.htmlfileprovider/sdcard/123.html");
  4. intent.setData(CONTENT_URI_BROWSERS);
  5. intent.setClassName("com.android.browser", "com.android.browser.BrowserActivity");
  6. startActivity(intent);

更多相关文章

  1. 网页链接拉起Unity Android和iOS APP
  2. android 网络图片与网页读取
  3. Android -- 文字设置超链接
  4. android webview 中处理网页中的400、404、500等错误
  5. ADB和Fastboot最新版的谷歌官方下载链接
  6. 【实战】android网页源代码查看器
  7. Android各版本源码下载链接
  8. Android Studio 关联项目软链接
  9. Android 部分内容设置颜色、字体、超链接、图片

随机推荐

  1. Android(安卓)开发手记三
  2. Android 5中不同效果的Toast
  3. Android实现textview文字滚动显示(跑马灯
  4. adb server didn't act
  5. Android 通过Matrix来对图片进行缩放,旋转
  6. Ubuntu 设置Android adb 环境变量
  7. Android的MediaPlayer—3
  8. Android:Dialog 遇到的问题
  9. android 多媒体部分学习笔记十 可视化频
  10. Android动态设置主题(使用RxBus模式)