1

How can use in my raw(html file) to webview?

zayar
  • 431
  • 1
  • 5
  • 11

2 Answers2

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.)

Community
  • 1
  • 1
EboMike
  • 76,846
  • 14
  • 164
  • 167
-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