Android分享笔记(4) Android的webview加载本地html、本apk内html和远程URL
16lz
2021-01-23
//打开本包内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");
更多相关文章
- Android cocos2d-x开发(二)之create-android-project.bat文件的修
- android 之使用任意XML资源文件
- android studio添加忽略文件
- android读取properties配置文件
- Android调用WebAPI之传参、文件
- Android assets文件夹之位置放置和作用( AS 和eclipse中的 )
- Android中关于FTP的文件上传和下载
- android 权限定义的文件,位置