In my Android project, I have some images stored in res/drawable/ which are accessed only from an HTML file loaded in a Webview. For example (code in HTML):
<img src="file:///android_res/drawable/myfriend.png">
These images are removed by Proguard from apk during optimization.
Does somebody know a way to keep these files (even if they are not used directly in the java code)?
I moved the images to the ‘assets’ folder which solved my problem: