WebView showing images from local cache
android
Solution
Set `src` attributes of `img` tags like in this example:
/data/data/com.Domain.MyApp/cache/example.jpg
Save the HTML content as an HTML file into the same folder with the images (cache directory in the current problem).
Finally load the html file like this:
mDescriptionWeb.loadUrl("file://" + this.getCacheDir() + "/" + "current.html");
Problem
I have to show some HTML content in WebView which has both images from URL's over the internet and images from the local phone cache. The src tag of the img has values like the following: file:///data/data/com.Domain.MyApp/cache/example.jpg but WebView renders no image. I am sure that the path is correct and that file exists. What could be the problem and how can I solve it?