Having found some issues using relative paths to reference external library files in my app, I thought I’d got everything fixed by ensuring the app used absolute paths.
However, I’ve found that the splash screen, icons and all images inside the app don’t display because they too are using a relative path. Here’s a screenshot from my chrome debug of a Genymotion virtual device: http://puu.sh/jB54v/bfa7b62246.png
And here’s a snippet of the generated config.xml file that’s created during the build process:
<platform name="android"> <icon src="resources/android/icon/drawable-ldpi-icon.png" density="ldpi"/> <icon src="resources/android/icon/drawable-mdpi-icon.png" density="mdpi"/> ... <splash src="resources/android/splash/drawable-land-ldpi-screen.png" density="land-ldpi"/> <splash src="resources/android/splash/drawable-land-mdpi-screen.png" density="land-mdpi"/> ... </platform>
As you can see in the screenshot, the app thinks the paths are relative and therefore can’t find the required files. How can I ensure the icon, splash and image files gets picked up and correctly displayed in the app?