How to set icon to an adobe air application - apache-flex

I am developing an Adobe Air app. I need to set an icon to the app so it is shown on the task bar. I added the icon tag to the descriptor file but it is not working and I really don't know why, any ideas?

Two things that might be throwing you off:
1) the icons block is commented out by default in the auto-generated descriptor file, and is an easy thing to overlook
2) the icons specified in a descriptor file don't appear in the app unless you build a release build, and install the resulting .air file. A debug build will only show the AIR icon.
At least these are the behaviors I experience in Flash Builder 4.

Adding the icons to your application descriptor should do it.
However, icons come in different sizes.
For example:
<icon>
<image16x16>/icons/app/icon_16.png</image16x16>
<image29x29>/icons/app/icon_29.png</image29x29>
<image32x32>/icons/app/icon_32.png</image32x32>
<image36x36>/icons/app/icon_36.png</image36x36>
<image48x48>/icons/app/icon_48.png</image48x48>
<image57x57>/icons/app/icon_57.png</image57x57>
<image72x72>/icons/app/icon_72.png</image72x72>
<image114x114>/icons/app/icon_114.png</image114x114>
<image128x128>/icons/app/icon_128.png</image128x128>
<image512x512>/icons/app/icon_512.png</image512x512>
</icon>
If I'm not mistaken, the 32x32 icon should be the one that is displayed in the taskbar.
Obviously, make sure that you are referring to the correct path in your descriptor file.

One more thing. I just wasted over an hour on this: For an iOS app, you won't see the icon when you drop the app into iTunes (at least not under Windows), but it will appear on your device!

Related

iOS 7 app icon sizes not being recognized

I've tried this about nine different ways tonight (and read through all the SO responses to similar issues, all of which have a straightforward similar resolution that doesn't seem to be working for me).
I'm getting this response from Apple after submission:
We have discovered one or more issues with your recent delivery for "[App Name]". Your delivery was successful, but you may wish to correct the following issues in your next delivery:
Missing recommended icon file - The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format.
Missing recommended icon file - The bundle does not contain an app icon for iPad of exactly '76x76' pixels, in .png format.
Missing recommended icon file - The bundle does not contain an app icon for iPad of exactly '152x152' pixels, in .png format.
Now, normally the advice is to make sure those app icon sizes are included, obviously, but also in the Info.plist.
The problem is that I've verified that they're in both — I have Icon-76.png, Icon-120.png, and Icon-152.png in the app bundle along with all the other pre-iOS-7 icons, and Info.plist includes, under "Icon files", "Icon-76.png", "Icon-120.png", and "Icon-152.png" along with all the other icon filenames.
I've cleaned, deleted any other developer-rejected archives, checked to make sure the archive from the Organizer has the icons and updated Info.plist, and tried rejecting and resubmitting several times, always receiving the missing-icons email upon the otherwise successful submission.
Has anyone run into this sort of thing, and/or have a possible solution?
Thanks.
If you use asset catalogues, could it be, that the asset catalog is not part of your build target? Check it by clicking on the catalogue in the project explorer and inspecting the targets in the inspector window.

How to change JavaFx native Bundle exe icon

I am trying to chance the icon of the exe file created native bundling of javafx packaging but it still contains the default icon. Please suggest
primaryStage.getIcons().add(FileUtility.loadImage("icon.png"));
did not help, it only changes the title bar and task bar icon.
The ico file still gets generated and icon of the exe files remains the default one
I also tried to assign an icon in the project properties-> Deployment-> icon but did not help
I believe I have encountered the same issue and the solution is described in the following thread.
As a side note - neither specifying your icon in the build.xml file or via the project's options in the deployment section is going to work thus far, but it seems to be fixed in the upcoming release of 7u10.
I added response here How to set custom icon for javafx native package icon on Windows and thinks it is the same issue you started out with. However you seem to have moved on, but others might find it interesting...
I added src/main/deploy/package/windows/myapp.ico there and it finally worked :)
For you:
Create src/main/deploy/package/windows/ folder
Add icon with name ${project.build.finalName}.ico
Run mvn jfx:build-native
I haven't played with it extensively - just got it to work and wanted to share. So if you want to use icon with different name, I don't know how. Not yet at least. The ... section in the config section seems to be for webstart, so I haven't been using it. Hope you get it to work!
Answered at How to set custom icon for javafx native package icon on Windows

Retina display images in app?

It was my understanding that all you needed to support retina display was to have a #2x image and scale down to half for the non retina display devices. I put all the regular and #2x files in my Supporting Files > Images folder. However, on the apple website is says the following:
"Even if you use these fixed icon filenames, your app should continue to include the CFBundleIcons or CFBundleIconFiles key in your app’s Info.plist file"
I was unaware that I had to do anything to the plist file or maybe the information in apple's website is outdated. I am running xcode 4.4, any help is appreciated, thanks.
its simple to add icons click on your project in the xcode navigator and just drag and drop the icons to the right slots. then, to be sure they are there just click on the info tab icon files ios5, icon files, ... , and then see if it says icon.png, icon#2x.png, icon-72.png because you need those. its pretty simple and the only editing you really have to do is add icon-72.png(which should be 72x72) and then it should work fine

how can launcher icon image name in mobile flex project using eclipse indigo?

I am building an mobile flex app in eclipse indigo and have my app worked almost to completion and about ready for deployment. Unfortunately, I cannot find how to change the app icon and title for the system to read, so my app still shows up as Main with the default package symbol in the launcher. Does anyone know where to apply changes to these properties?
There are properties in your app-config file. If you main application file is Main.mxml; then most likely your app config is named Main-app.xml. Look for the icon tag to specify the app icon. One of my apps uses something like this:
<icon>
<image32x32>/assets/icon/Icon32x32.png</image32x32>
<image36x36>/assets/icon/Icon36x36.png</image36x36>
<image48x48>/assets/icon/Icon48x48.png</image48x48>
<image72x72>/assets/icon/Icon72x72.png</image72x72>
<image114x114>/assets/icon/Icon114x114.png</image114x114>
</icon>
I believe the name under the icon is specified using the name parameter in the same file:
<name>My App Name</name>

Modify icon of the Flex application for Blackberry-Playbook

Has anybody please found a way to modify/replace the icon of a Playbook program?
Like display a red star on it - to indicate there is new message for the user.
I've tried tracing NativeApplication.supportsDockIcon and NativeApplication.supportsSystemTrayIcon properties, but they are both false on Playbook simulator.
What you're asking (dynamically changing the icon once the app is installed) is not currently possible. That will require OS support which is not available and hasn't even been mentioned publicly yet.
The reason it's not possible currently without an API is that everything in your .bar is written to a folder which is read-only to the app itself, icon file and MANIFEST.MF file included.
Edit your blackberry-tablet.xml and add
<icon>
<image>blackberry-tablet-icon.png</image>
</icon>

Resources