I have a problem that drives me crazy. I have a static html file (assets / help / index.html) that should contain some images. Since I want different images for different densities, and the images are already included in drawable- {ldpi, mdpi, hdpi}, I thought I would use the following html code:
<img src="file:///android_res/drawable/image.png">
This works great for an eclipse! Unfortunately, in the production version (build with the maven android plugin), a web view displaying an html page shows broken images.
I tried to open the page with loadUrl and loadDataWithBaseUrl (first I read the file myself), the last with the base file url: /// android_res / drawable. Both attempts succeed in eclipse, but do not work in the maven version.
So, I unpacked both the generated Eclipse apk and the generated maven, and did diff -r between them, because obviously there should be a difference.
I'm confusing to find only a few trivial differences (basically signing the differences, since eclipse apk signs with a debug certificate and maven with my official certificate). In addition, the contents of apks are identical!
Does anyone have an idea of ββwhat is happening or how to act in the disclosure of additional information?
source share