Setting different icons for Android and iPhone

2 posts / 0 new
Last post
rlopes
rlopes's picture
Offline
Joined: 2 Jan 2012
Posts:
Setting different icons for Android and iPhone

Hello,

I started building an app with Mosync using NativeUI that target iPhone and Android and I have a minor issue.

The .icon file is great so you don't have to care about creating a ton of different icons for the different phones. I am providing a default .SVG file and it works.

However I would like to have a different application icon on Andoid and on iPhone. Is it possible with the .icon file, is it planned or is there a workaround ?

Thanks,

Richard Lopes

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Mattias Bybro
mattiasb's picture
Offline
Mobile Wizard
Joined: 20 Jan 2010
Posts:

There is a workaround (although there is no proper platform support implemented yet). You may use the fact that the icon sizes for iPhone/iPad are 57x57, 72x72 and 114x114 and add this to your icon file:

<?xml version="1.0" encoding="UTF-8"?>
<icon>
	<instance size="default" src="default.svg" />
	<instance size="114x114" src="ios.svg" />
	<instance size="57x57" src="ios.svg" />
	<instance size="72x72" src="ios.svg" />
</icon>

Please note that platforms that make use of the same icon sizes will get that icon instead of the 'default'. (There is a potential conflict for Android hdpi icons, which are 72 by 72, but this is not implemented in MoSync -- please note that this may break the above workaround in the future.)