I have an HTML string of data that i parse from an ATOM Feed. Obviously there are references to images inside, that I’d like to show on a WebView. But using
webview.loadDataWithBaseURL(“”, data,”text/html”, “utf-8″,””);
only the text is displayed and the images are not shown.
What I am missing?
Thank you in advance.
You are not passing the
BASE URL, you are passing theemptry string. As you can see in the docsloadDataWithBaseURL()is expecting as the first parameter theBase URLof yourHtml Data. So what you should have is something like this :