How can use in my raw(html file) to webview?
A:
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
2010-07-28 02:11:02
but, loadData(summary, "text/html", "utf-8"); summary must String type. I want to call from(R.raw.part.html). Thank anyway.
zayar
2010-07-28 02:31:11
A:
Sounds like something that was asked a few days ago. Check out my answer here: http://stackoverflow.com/questions/3295381/android-html-resource-with-references-to-other-resources/3295535#3295535
(This is regarding HTML files in the assets block, but I hope this works for you as well.)
EboMike
2010-07-28 03:41:48