The moose likes Android and the fly likes about loadDataWithBaseUrl function Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Mobile » Android
Reply Bookmark "about loadDataWithBaseUrl function" Watch "about loadDataWithBaseUrl function" New topic
Author

about loadDataWithBaseUrl function

Yunnan Zhou
Ranch Hand

Joined: May 04, 2011
Posts: 31

I use webView.loadDataWithBaseUrl("",data,"text/html","utf-8",null) to display a html code,
but there is nothing to display,just a white background.
are there any body know what happen?
html code like "<p>hello world..</p>"

I'am a Chinese.I like Java.Hello.
Hardik Trivedi
Ranch Hand

Joined: Jan 30, 2010
Posts: 252
try using

Yunnan Zhou
Ranch Hand

Joined: May 04, 2011
Posts: 31

Hardik,thank you for you reply. but I had made it by another method.
 
 
subject: about loadDataWithBaseUrl function
 
Threads others viewed
input/output stream
change src of iframe
can swing embed a html table in any kind of panel ?
Problem in displaying HTML in flex
Inserting the value into a TextField in a JavaScript
jQuery in Action, 2nd edition