]Android浏览器如何打开本地html文件

Android 2010-03-12 01:02:32 阅读74 评论0 字号:大中小
转自:http://hi.baidu.com/wangysh/blog/item/4aa1337fb9421e0128388a8a.html

Java语言: Codee#9727
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);
假设要打开的本地html文件存放在如下路径 /sdcard/123.html

更多相关文章

  1. android 导出签名APK--混淆文件proguard.cfg详解
  2. Android 在xml布局配置文件中给Button按钮添加事件
  3. Android在SDcard建文件夹(在Android中移动文件必用)
  4. android 获取路径目录方法 以及 获取路径方法
  5. Android Studio 配置快捷方式生成JNI头文件的方法
  6. android 安装文件例子
  7. android 读取DDMS里的文件时打不开,解决方法
  8. android配置文件详解

随机推荐

  1. android点击事件,第一次无效,第二次才响应
  2. 10个经典的Android开源应用项目
  3. 第八章 Android(安卓)中View的工作原理
  4. android studio 通过wifi连接手机调试
  5. Android跨平台应用开发
  6. 详谈 Android(安卓)高大上的图片加载框架
  7. Android(安卓)SDK开发Android应用
  8. 【Android(安卓)界面效果29】研究一下And
  9. 【Android(安卓)初学者】开发工具介绍:stu
  10. windows 8环境—android studio初步体验(