I have to display html content which i get from am xml(RSS feed).I am using the loadDataWithBaseURL .
But if the the html content contains an image,how do i render the image in the webview as in the html content. webView.loadDataWithBaseURL("www.company.com",descHtmlString, "text/ html", "utf-8", "www.companyfailed.com"); On Jan 13, 1:30 pm, Ryan <ryankelly...@hotmail.com> wrote: > > I'm guessing it was the first suggestion, not the other two. > > Actually, they were such simple changes I made both at once. E.G. I > used "UTF-8", instead of "utf-8". And I switched to the > loadDataWithBaseURL function. The variable html was always a String so > no change there. > > I'm guessing it's the loadDataWithBaseURL function that did the trick, > but I will try both suggestions in isolation just to make sure. > > I'd rather not use the loadDataWithBaseURL to load local data if I can > help it, so I'll continue researching a fix for the loadData function. > > Thanks for your help. > > On Jan 12, 10:42 pm, Mark Murphy <mmur...@commonsware.com> wrote: > > > Ryan wrote: > > > Wow.. thanks Mark, that fixed it! > > > I'm guessing it was the first suggestion, not the other two. > > > > Do you know why that works, seems an odd way to get it to work?? > > > It is definitely odd. However, it seems to cure a lot of ills, ills that > > I presume come from some issues with the implementation of the simpler > > loadData() method. I need to look at the source for that sometime... > > > -- > > Mark Murphy (a Commons Guy)http://commonsware.com > > _The Busy Coder's Guide to Android Development_ Version 2.0 Published! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---