May 25 2009

iPhone dev: Remove the glossy effect from the application icon

As you probably know, the iPhone adds a nice glossy effect to your application’s icon. It sure does look good, but sometimes it just doesn’t suit your icon. It can be prevented by editing the Info.plist file. It’s easy! Follow me.

iphone_app_01

Click on one of the lines to make the little plus icon appear. Click the plus icon to add a new line.

iphone_app_02

Give it a key name of UIPrerenderedIcon.

iphone_app_03

The value is by default set to String, but we need to change it to Boolean. Right-click the newly created line, choose Value Type > Boolean.

iphone_app_04

The value has now magically transformed into a check box.

iphone_app_05

Click it!

And you’re done. It’s as easy as that.


Apr 28 2009

Adobe AIR: Error when creating AIR file: 303

I’m currently using Flex Builder 3.0.1.205647 with Flex SDK 3.1.0 and I got an error saying Flex couldn’t create my AIR file. After a bit of googling I found out that it is a bug in Flex Builder 3 (Bug report #FB-11712), and it seems like it will be fixed in the Gumbo release.

The bug is related to adding custom application icons. You do this by editing the application’s xml file. To be more precise, at the lines which looks like these:

<!-- The icon to display for the file type. Optional. -->
<icon>
   <image16x16>icon_16.png</image16x16>
   <image32x32>icon_32.png</image32x32>
   <image48x48>icon_48.png</image48x48>
   <!--image128x128></image128x128-->
</icon>

The solution to this bug is actually quite simple. Simply comment out the icons you don’t plan to use -just like I have done in the example above. Oh, and be sure to tick the check box “Copy non-embedded files to output folder” in Project -> Properties -> Flex Compiler.