How can use in my raw(html file) to webview?
Asked
Active
Viewed 322 times
2 Answers
0
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.)
-
Could whoever voted this down have the courtesy to explain why? – EboMike Jul 28 '10 at 16:14
-1
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

nicholas.hauschild
- 42,483
- 9
- 127
- 120
-
but, loadData(summary, "text/html", "utf-8"); summary must String type. I want to call from(R.raw.part.html). Thank anyway. – zayar Jul 28 '10 at 02:31