[Resolved] My Icon seems to not work

When uploading an app onto the android marketplace I keep getting the corona icon displaying next to my app. I have the following images at their correct sizes in the main folder: Icon-hdpi.png, Icon-mdpi.png, Icon-ldpi.png, and Icon.png. Is there code that needs to go into the build.setting or config file that would fix this? I have never posted an app onto the android market place, so if this is normal please let me know. I really could use the help. [import]uid: 38614 topic_id: 17998 reply_id: 317998[/import]

I’m not certain about this issue (I focus on iOS) but will bring it up in our next meeting - if you only have your icons in the folder for each size, then they should be the ones showing up.

Peach [import]uid: 52491 topic_id: 17998 reply_id: 68889[/import]

I hope this is an OK place to put this - it has to do with the Icon.png file and this is the closest discussion I could find.

I am working on an app for both Android and iOS. There seems to be a conflict in definition of Icon.png between the two platforms and I do not see a way to handle it in Corona. From what I have ready, for iOS Icon.png is to be 57x75 and for Android Icon.png is to be 72x72.

Do I need to rename/munge with files between building for iOS and Android? [import]uid: 117477 topic_id: 17998 reply_id: 80197[/import]

For your iOS build you want this in the build.settings under plist;

[lua]CFBundleIconFiles = {
“Icon.png”,
“Icon@2x.png”,
“Icon-72.png”
}[/lua]

Icon.png = 57x57 (iPhone, iPod Touch)
Icon@2x.png = 114x114 (Retina devices)
Icon-72.png = 72x72 (iPad, iPad2)

Then for Android it is as simple as putting Icon-ldpi.png, Icon-mdpi.png and Icon-hdpi.png in the project folder. These should be 36x36, 48x48 and 72x72 respectively.

Peach :slight_smile: [import]uid: 52491 topic_id: 17998 reply_id: 80210[/import]

Thanks. On closer reading the Icon.png at 72x72 was for Android 1.6 which is no longer supported so it should no longer be a point of contention between the two platforms. [import]uid: 117477 topic_id: 17998 reply_id: 80498[/import]

My first Android build,Using Corona 750.
Any further advice on fixing this issue appreciated.
Hit a wall.Thanks.
[import]uid: 99743 topic_id: 17998 reply_id: 93848[/import]

ms, what icon files do you have in folder? Names and sizes, please? [import]uid: 52491 topic_id: 17998 reply_id: 94207[/import]

icon.hdpi.png (72x72)
icon.mdpi.png (48x48)
icon.ldpi.png (36x36)

Thanks,Mark [import]uid: 99743 topic_id: 17998 reply_id: 94236[/import]

Hi Peach,I fixed it :slight_smile:
The naming convention was at fault.

icon-hdpi.png ?

Thanks for looking into it :slight_smile:
Mark
[import]uid: 99743 topic_id: 17998 reply_id: 94334[/import]

No worries Mark, well done on spotting the issue yourself - good luck with your project!

Peach :slight_smile: [import]uid: 52491 topic_id: 17998 reply_id: 94399[/import]

Hi

Just built and uploaded an app to google play, but on install it is still using the default corona icon (circular orange).
We have the following files in the main folder:

Icon-hdpi.png which is 72x72,
Icon-mdpi.png which is 48 x 48,
Icon-ldpi.png which is 36 x 36

What could we be missing? Any help would be appreciated.

Thanks!
TK [import]uid: 194387 topic_id: 17998 reply_id: 144202[/import]

Icon-hdpi.png should be 64x64

Also we now support Icon-xhdpi.png at 96x96 but I don’t think it’s required.

[import]uid: 199310 topic_id: 17998 reply_id: 144220[/import]

Thanks Rob - I will try changing Icon-hdpi.png to 64 x 64

However I noticed that the android build documentation for corona states it should be 72 x 72:
http://developer.coronalabs.com/content/building-devices-android#Application_Icons

as does android developer website:
http://developer.android.com/guide/practices/ui_guidelines/icon_design_launcher.html#size

Is this something that has perhaps changed recently in Corona?

[import]uid: 194387 topic_id: 17998 reply_id: 144259[/import]

Interesting. The icons used to half power of twos… 48, 64, 96 with the odd ball being 36 instead of 32. I’ve read that doc multiple times too. I wonder if they changed it recently.

They say 72 and we say 72 so I must be wrong. The only other thing is to make sure it starts with a capital I and the dash s a real dash and not a ndash or ndash. That is it has to be the minus sign typed from the keyboard. If you copy/paste it from a web page, that dash may have been converted to a more stylish dash. [import]uid: 199310 topic_id: 17998 reply_id: 144279[/import]

Ok, worked it out finally!

Confirmed that its 72,48 and 36 for the sizes.

All that happened with me was that in windows explorer the file name was showing as “Icon-hdpi.png” for example, but then I realised when I saw the assets listed in Corona Project Manager, that file was called “Icon-hdpi.png.png”

i.e. just needed to rename the file in windows to Icon-hdpi and take away the unnecessary “.png”

Thanks for your help :slight_smile:

[import]uid: 194387 topic_id: 17998 reply_id: 144293[/import]

Hi

Just built and uploaded an app to google play, but on install it is still using the default corona icon (circular orange).
We have the following files in the main folder:

Icon-hdpi.png which is 72x72,
Icon-mdpi.png which is 48 x 48,
Icon-ldpi.png which is 36 x 36

What could we be missing? Any help would be appreciated.

Thanks!
TK [import]uid: 194387 topic_id: 17998 reply_id: 144202[/import]

Icon-hdpi.png should be 64x64

Also we now support Icon-xhdpi.png at 96x96 but I don’t think it’s required.

[import]uid: 199310 topic_id: 17998 reply_id: 144220[/import]

Thanks Rob - I will try changing Icon-hdpi.png to 64 x 64

However I noticed that the android build documentation for corona states it should be 72 x 72:
http://developer.coronalabs.com/content/building-devices-android#Application_Icons

as does android developer website:
http://developer.android.com/guide/practices/ui_guidelines/icon_design_launcher.html#size

Is this something that has perhaps changed recently in Corona?

[import]uid: 194387 topic_id: 17998 reply_id: 144259[/import]

Interesting. The icons used to half power of twos… 48, 64, 96 with the odd ball being 36 instead of 32. I’ve read that doc multiple times too. I wonder if they changed it recently.

They say 72 and we say 72 so I must be wrong. The only other thing is to make sure it starts with a capital I and the dash s a real dash and not a ndash or ndash. That is it has to be the minus sign typed from the keyboard. If you copy/paste it from a web page, that dash may have been converted to a more stylish dash. [import]uid: 199310 topic_id: 17998 reply_id: 144279[/import]

Ok, worked it out finally!

Confirmed that its 72,48 and 36 for the sizes.

All that happened with me was that in windows explorer the file name was showing as “Icon-hdpi.png” for example, but then I realised when I saw the assets listed in Corona Project Manager, that file was called “Icon-hdpi.png.png”

i.e. just needed to rename the file in windows to Icon-hdpi and take away the unnecessary “.png”

Thanks for your help :slight_smile:

[import]uid: 194387 topic_id: 17998 reply_id: 144293[/import]