`

android webview的三种加载方式

 
阅读更多
//打开本包内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://m.oschina.net"); 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics