Skip to content
Dec 30 /

Displaying custom icons in an Adobe AIR application

The following example shows how you can display custom icons in an Adobe AIR application by setting the <icon> node in the AIR application’s descriptor XML file.

Full code after the jump.

<!-- The icon the system uses for the application. For at least one resolution,
     specify the path to a PNG file included in the AIR package. Optional. -->
<icon>
    <image16x16>assets/AppIcon16.png</image16x16>
    <image32x32>assets/AppIcon32.png</image32x32>
    <image48x48>assets/AppIcon48.png</image48x48>
    <image128x128>assets/AppIcon128.png</image128x128>
</icon>

application_XML_icon_test srcview

6 Comments

leave a comment
  1. Tomas Sancio / Feb 8 2009

    Thank you very much! Helped me a lot.

  2. Brentski / Feb 24 2009

    Your paths are different here. “/assets/” and “assets/”

    Much confusion may be caused by such little things.

  3. Arulraj / Jun 1 2009

    for me… air.xml(29): error 105: application.icon.image16x16 contains an invalid value

    how to resolve this… can anyone help me out…

  4. Arulraj / Jun 1 2009

    assets\icon_016.png
    assets\icon_032.png
    assets\icon_048.png
    assets\icon_128.png

    this is my file.. i m working in windows..

  5. chary / Apr 13 2010

    Thanks so much your article. I lost 2 days for this. I think it is so easy but it make me tired. Thanks when I meet your article!

    – chary1112004 –

  6. Trechix / Jul 7 2010

    My descriptor file reads as follows:

    examples.html.SeaKing
    0.1
    SeaKing

    index.html
    true
    855
    590

    And after reading this article, i’ve written the following to put in my XML descriptor file:

    /assets/App_16.png
    /assets/App_32.png
    /assets/App_48.png
    /assets/App_128.png

    I’m 100% sure everything’s correct, including the image paths. But I’m not sure where in the XML file to put this–whatever I try never shows up when I test it out. Any help?

Leave a Comment

Spam Protection by WP-SpamFree