Issue
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.
Solution
You are not passing the BASE URL, you are passing the emptry string. As you can see in the docs loadDataWithBaseURL() is expecting as the first parameter the Base URL of your Html Data. So what you should have is something like this :
webview.loadDataWithBaseURL("www.mypage.html",data,"text/html","utf-8",null);
Answered By - Ovidiu Latcu
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.