After I have tried some methods, it could work now. use: loadDataWithBaseURL (null, content, "text/html", "utf-8", "about:blank");
Thank you very much! On Feb 11, 3:21 pm, Mark Murphy <mmur...@commonsware.com> wrote: > kolby wrote: > > Hmmm, > > > String test = "<html><head></head><body>some text <font color= > > \"#00ff00\">in green</font></body></html>"; > > web.loadDataWithBaseURL("data:///some/text/",test, "text/html", > > "utf-8", ""); > > > only gives me "some text" and nothing in green. > > Aha! > > JBQ wrote: "LoadData loads your data as a data: Uri. You need to > > Uri-escape your data." > > http://groups.google.com/group/android-developers/browse_thread/threa... > > Try that and see if it helps. > > > Saving to a file just to make the html parser work seems excessive for > > a dynamic web app. > > In my case, I was starting from a file. I just wanted to demonstrate > that the issue isn't withWebView. > > -- > Mark Murphy (a Commons Guy)http://commonsware.com > > Android Training on the Ranch! -- Mar 16-20, > 2009http://www.bignerdranch.com/schedule.shtml --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---