引用:http://www.oschina.net/code/snippet_54100_6227
[代码] [Java]代码
01 | //打开本包内asset目录下的index.html文件 |
02 |
03 | wView.loadUrl(" file:///android_asset/index.html "); |
04 |
05 | //打开本地sd卡内的index.html文件 |
06 |
07 | wView.loadUrl("content://com.android.htmlfileprovider/sdcard/index.html"); |
08 |
09 | //打开指定URL的html文件 |
10 |
11 | wView.loadUrl(" http://m.oschina.net"); |