//打开本包内asset目录下的index.html文件
webView.loadUrl("file:///android_asset/index.html");

//打开本地sd卡内的index.html文件
wView.loadUrl("content://com.android.htmlfileprovider/sdcard/index.html");
//打开指定URL的html文件
wView.loadUrl("http://m.oschina.net");


更多相关文章

  1. Android cocos2d-x开发(二)之create-android-project.bat文件的修
  2. android 之使用任意XML资源文件
  3. android studio添加忽略文件
  4. android读取properties配置文件
  5. Android调用WebAPI之传参、文件
  6. Android assets文件夹之位置放置和作用( AS 和eclipse中的 )
  7. Android中关于FTP的文件上传和下载
  8. android 权限定义的文件,位置

随机推荐

  1. Android(安卓)APP首次登录和之后自动登录
  2. Android studio启动后无法更新
  3. 第1个Android应用程序 Android制作简单单
  4. Android中的visibility属性的区别
  5. android开发 加载so库的解析和出现的各种
  6. android 用代码画虚线边框背景
  7. android-详解Android中的屏幕方向
  8. Android 字体颜色变化(点击)
  9. 怎么在button上写两行文字
  10. Android开发中立即停止AsyncTask和Thread