开发者

Android:how use to my file

开发者 https://www.devze.com 2023-01-08 22:57 出处:网络
How can use in my raw(html file) to 开发者_开发技巧webview?Sounds like something that was asked a few days ago. Check out my answer here: Android HTML resource with references to other resources

How can use in my raw(html file) to 开发者_开发技巧webview?


Sounds like something that was asked a few days ago. Check out my answer here: Android HTML resource with references to other resources

(This is regarding HTML files in the assets block, but I hope this works for you as well.)


You would use a WebView. Instantiate a WebView, and then call the method: webview.loadData(summary, "text/html", "utf-8"); // 'summary' is your raw html...

http://developer.android.com/reference/android/webkit/WebView.html

0

精彩评论

暂无评论...
验证码 换一张
取 消