Skip to main content
pwillener
Legend
Nov 18, 2011 9:52 AM UTC
Answered

Application icon?

Windows XP; Adobe AIR SDK 3.1.0.4880

I have just started using Adobe AIR this week.  I made a litte test app at home, following http://help.adobe.com/en_US/air/build/WS5b3ccc516d4fbf351e63e3d118666ade46-7ecc.html

After completing the app, and installing it, it created a desktop shortcut with an AIR icon.  The application itself also has a little AIR icon in the upper left corner.

Today I created a real little app on Windows XP.  This time no icon appeared on the desktop, nor on the application Window:

Anyone knows why this difference, with the same AIR SDK?

This topic is closed to new replies. Start a new post to keep the conversation going.
chris.campbell
chris.campbellCorrect answer
Legend
Nov 18, 2011 10:48 PM UTC

Hi Pat,

Can you post your app desctiptor xml file?  You should be able to set different size icon in the <icon> section of the descriptor file (though remember to uncomment it before building).

Thanks,

Chris

7 replies

pwillener
pwillenerAuthor
Legend
Nov 18, 2011 11:36 AM UTC

Sorry, I was wrong - my memory was slightly incorrect.

When running the installed HelloWorld app it looks like

What I remembered was when testing, it looked like

Now my question is: how can we get the AIR, or any other icon into the installed app window?

Translate
chris.campbell
chris.campbellCorrect answer
Legend
Nov 18, 2011 10:48 PM UTC

Hi Pat,

Can you post your app desctiptor xml file?  You should be able to set different size icon in the <icon> section of the descriptor file (though remember to uncomment it before building).

Thanks,

Chris

Translate
pwillener
pwillenerAuthor
Legend
Nov 19, 2011 1:52 AM UTC

Hi Chris,

Thank you for your reply.  I have added the <icon> tag to my descriptor file, as follows

<?xml version="1.0" encoding="utf-8" ?>

<application xmlns="http://ns.adobe.com/air/application/3.1">

    <id>examples.html.HelloWorld</id>

    <versionNumber>0.3</versionNumber>

    <filename>HelloWorld</filename>

    <initialWindow>

        <content>HelloWorld.html</content>

        <visible>true</visible>

        <width>400</width>

        <height>200</height>

        <icon>

            <image16x16>C:\Program Files (x86)\Adobe\AIRSDK\samples\icons\AIRApp_16.png</image16x16>

            <image32x32>C:\Program Files (x86)\Adobe\AIRSDK\samples\icons\AIRApp_32.png</image32x32>

            <image48x48>C:\Program Files (x86)\Adobe\AIRSDK\samples\icons\AIRApp_48.png</image48x48>

            <image128x128>C:\Program Files (x86)\Adobe\AIRSDK\samples\icons\AIRApp_128.png</image128x128>

    </icon>

    </initialWindow>

</application>

However, when trying to build the application I get the following error

Error 103: application.initialWindow.icon is an unexpected element/attribute

Translate