Phonegap 3.0 CLI ignoring Android app icons

1.2k Views Asked by At

I'm using Phonegap 3.0's Command Line Interface to create and build an Android app.

In the www/res/icon/android folder, there are 4 standard Phonegap icons. I replace these with my app icons. I then build the Android project. I would expect that my icon would be generated in the platforms/android/res/drawable folder (and platforms/android/res/drawable-hdpi folder etc). But instead the standard Phonegap icon is used. Is there a way to get Phonegap to use the icons in the www/res/icon/android folder rather than generating the standard icons when building an Android app?

2

There are 2 best solutions below

4
On

When you using the command line interface you need to place the icons in the actual platform specific folders.

For android:

{PROJECT_PATH}/platforms/android/res/drawable/icon.png
{PROJECT_PATH}/platforms/android/res/drawable-hdpi/icon.png
{PROJECT_PATH}/platforms/android/res/drawable-ldpi/icon.png
{PROJECT_PATH}/platforms/android/res/drawable-mdpi/icon.png
{PROJECT_PATH}/platforms/android/res/drawable-xhdpi/icon.png
0
On

Had same issue

PhoneGap Build is doing it correctly