Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add custom app icon on Android in Phonegap? [duplicate]

Tags:

cordova

Do you know how to add a custom .png icon on Android in Phonegap? I changed the AndroidManifest.xml "android:icon="@drawable/ic_launcher" to a custom name but it's not working. In addition, my icons are all in the www/res/drawable folders with the correct sizes each png should be. I have no idea what the deal is. Any help would be greatly appreciated.

like image 742
Josh Valdivieso Avatar asked Jan 16 '23 03:01

Josh Valdivieso


2 Answers

Note that if you're doing a local build the config.xml is ignored and the icon used is the one at platforms/android/res/drawable

like image 139
drodsou Avatar answered Jan 30 '23 23:01

drodsou


You can use the PhoneGap Builder for easily describing the app icon in the config.xml.

But if you don't want to use the builder this threads perhaps can help you:

App icon for Android in Phonegap

Icon for app using Phonegap for android

like image 45
F481 Avatar answered Jan 30 '23 23:01

F481