Hi,
I would like to load Html page content and image in WebView. (Note:
Html page and image are stored in applications 'files:///' directory)
Html page data:
<html>
<body>
...
Html page content here..
<br>
...
<img src="file:///data/data/com.apps.myapp/files/user.png" />
</body>
</html>
Load Html in WebView using loadDataWithBaseURL method.
webview.loadDataWithBaseURL("file:///data/data/com.apps.myapp/files/",
htmldata, "text/html", "UTF-8",null);
Now this loads only html text part in WebView - Is it possible to load
an image (with Html text) from the files directory?
Any pointer or help on this would be greatly appreciated.
Thank You.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---