Phonegap Android App Icon

I have an HTML5 / Javascript application and I used the PhoneGap build service to create an APK file for my Android.

I have successfully installed the APK file on my Android, and everything is fine, except that the application icon on the phone is the default Android icon. In PhoneGap Build, I uploaded my PNG file to the project in the "Details" section, and I thought the icon should be used as the icon of your application? I tried several different sizes.

Let me know if there is anything else I need to do.

+4
source share
2 answers

In the phone run, the following should contain

www_android \ res \ values ​​\ strings.xml - contains the name of the application
www_android \ res \ drawable-hdpi - contains a 57x57 pixel icon
www_android \ res \ drawable-hdpi - contains a 57x57 pixel icon
www_android \ res \ drawable-hdpi - contains a 57x57 pixel icon

Source (step 12)

As an alternative

<?xml version="1.0" encoding="UTF-8"?> <widget xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0" id="com.nitobi.johngarrett" version="1.0"> <name>John Garrett Drinking Game</name> <description> If you're watching a Canucks game, you need play this. </description> <author href="http://www.nitobi.com" email=" support@nitobi.com "> Tim Kim, Ryan Betts, Fil Maj </author> <icon src="img/beer_72.png" width="72" height="72" /> <icon src="img/beer_48.png" width="48" height="48" /> <icon src="img/beer_36.png" width="36" height="36" /> </widget> 

A source

+12
source

None of the above answers worked, but I figured out how to do this. Create a png icon and name it "icon.png" and just put the image in "Project_Folder / res / drawable-hdpi /" where Project_Folder is the folder of the PhoneGap application.

Hope this helps.

+1
source

Source: https://habr.com/ru/post/1382534/


All Articles