PhoneGap Android: How to force Application to use icons from asset\www\res instead res\drawable folder?

config.xml is used only by the PhoneGap Build service.

– Building locally, this file is ignored and the files in your res/drawable directory are used.
– Building with PGBuild, the service looks for this file at the root of your project (next to index.html) and uses it to identify what images should be copied into the res/drawable folder on their end to generate an apk with the right images (in the case of Android).

Since PGBuild builds for a lot of platforms, config.xml is their way of offering as much customisation capabilites as they can outside of the html/js/css. Some of this is just for picking your icons/splash images for each platform but you can do a lot more with too. PGBuild does each of the natively required actions for each platform based on the contents of the uploaded file.

I hope this is clear enough.

Leave a Comment