webview加载本地html、本apk内html和远程URL

时间:2014-07-20 22:38:53   收藏:0   阅读:221
//打开本包内asset目录下的index.html文件
 
wView.loadUrl(" file:///android_asset/index.html ");   
 
//打开本地sd卡内的index.html文件
 
wView.loadUrl("content://com.android.htmlfileprovider/sdcard/index.html");
 
//打开指定URL的html文件
 
wView.loadUrl("http://blog.csdn.net/anjon520");

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!