开发者

Android:how use to my file

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜