11-04-2010 07:42 PM
Has anyone been able to set the application icon to a 72x72 PNG file. I've tried the AIR method (adding it to the application XML file),
<icon> <!--<image16x16></image16x16>--> <!--<image32x32></image32x32>--> <!--<image36x36></image36x36>--> <!--<image48x48></image48x48>--> <image72x72>hello.png</image72x72> <!--<image128x128></image128x128>--> </icon>
but I get a install error with blackberry-airpackager.
<app-name>-app.xml error 303: Icon <name>.png is missing from package.
The file is there and even copied to the bin-debug directory.
Thank you in advance...
Solved! Go to Solution.
11-05-2010 03:43 AM
elena_laskavaia is right, you have to add the source path to your icons into the command line. Simply add " hello.png" at the end of your command line, there is no options to give it
Hope this helps,
11-05-2010 03:46 AM
just wondering but didn't they say that the app icons should be 90x90?
11-05-2010 03:53 AM
Yup, you are right CTR1, icons are 90x90px, you have to add this line to the presets in the XML descriptor file
11-05-2010 06:18 AM
per the Webcast yesterday, icons are supposed to be 72x72. I tried 90x90 once and it rejected it as an invalid size.
11-05-2010 07:07 AM
The compiler for AIR rejects 90x90 in the descriptor, but the simulator displays 90x90 icons. The Getting Started docs from BlackBerry say to name your 90x90 icon blackberry-tablet-icon.png and the BlackBerry compiler will pick it up and recognize it as the icon, even though it isn't listed in the descriptor.
You do need to include it in your list of files for the BAR compiler though.
With the way AIR icons work, a 128x128 (or 72x72) icon may work as well, and it is a standard size for teh app descriptor file. For Desktop AIR applications, if the requested icon size isn't available, it uses the closest size that is available and scales it for display. I'm not sure this works for the tablet SDK though.
11-05-2010 07:48 AM
If you specify icon which is not 90x90 it will be scaled automatically, which may look ugly. If you want same app to be used for different platforms (like blackberry and android) you would need to provide two icons of different sizes, one for blackberry one for another platform.
11-05-2010 06:05 PM
Verified the process:
In the application.xml file:
<icon> <!--<image16x16></image16x16>--> <!--<image32x32></image32x32>--> <!--<image36x36></image36x36>--> <!--<image48x48></image48x48>--> <image72x72>assets/mendelbrot.png</image72x72> <!--<image128x128></image128x128>--> </icon>
The <icon><image>...</image></icon> in the blackberry-tablet.xml file does not seem to do anything.
In the blackberry-airpackager command, just add the path to the icon:
blackberry-airpackager -package Mandlebrot.bar -installApp -launchApp -C bin-debug Mandlebrot-app.xml Mandlebrot.swf assets/mendelbrot.png -device 192.168.192.129
The image is 72x72 and NOT 90x90.