Skip to main content
Participant
October 25, 2012
Answered

AIR 3.5 still doesnt have 96x96px xhdpi icon support on android.

  • October 25, 2012
  • 4 replies
  • 9586 views

AIR 3.5 still doesnt have 96x96px xhdpi icon support on android.

Nexus7's use the larger icons.

This topic has been closed for replies.
Correct answer nimitja

If I add the 96x96 line to the app-xml file and do a Publish from Flash, that line is deleted from the app-xml file and the 72x72 icon is placed in the XHDPI folder in the apk.

app-xml pre-build:

<icon>

        <image48x48>AppIconsForPublish/icon_square_48.png</image48x48>

        <image72x72>AppIconsForPublish/icon_square_72.png</image72x72>

        <image36x36>AppIconsForPublish/icon_square_36.png</image36x36>

         <image96x96>AppIconsForPublish/icon_square_96.png</image96x96>

    </icon>

app-xml post build:

<icon>

        <image48x48>AppIconsForPublish/icon_square_48.png</image48x48>

        <image72x72>AppIconsForPublish/icon_square_72.png</image72x72>

        <image36x36>AppIconsForPublish/icon_square_36.png</image36x36>

       

    </icon>

I suppose I can go back to manually packaging the app - but would it be that big a deal to add the icon as it is supposed to be added in the same way the others are handled?


This is a known issue and is planned to fixed in next release of Flash Professional. For the time being, could you please package your application through command line using adt (http://help.adobe.com/en_US/air/build/WS901d38e593cd1bac1e63e3d128cdca935b-8000.html). Please let us know how it goes.

Thanks

-Nimit

4 replies

9999pippoflash
Inspiring
October 29, 2013

You can add 144 and 96 micon entries manually in the app descriptor, then you can either use adt, or mark the app descriptor as read-only, and flash will not strip lines off whil compiling!

Inspiring
October 29, 2013

This seems to work for Flash as well.  Get app ready for packaging, then last step edit the manifest and set it as read-only.  At first Flash failed with 'missing icon'.  So make sure in the publish settings that you add the 96 and 144 icon.

When I set my apk to a zip, I see all my icons in the assets folder as well as the icon in the drawable-xxhdpi and drawable-xhdpi. 

Great workaround, just need to test the app on high res device to confirm. 

Inspiring
October 29, 2013

Tested and seems to work.  Added a step by step to the bug report.

https://bugbase.adobe.com/index.cfm?event=bug&id=3588686

Good find Filippo!

Participant
October 30, 2012

Yup, there is a 512px image... thats a separate issue...   about halfway down the page it lists the icon sizes for android : http://developer.android.com/guide/practices/ui_guidelines/icon_design_launcher.html  ...

Participant
October 30, 2012

Tried using the Flash CS6 IDE and tried to add it manually to the app.xml file and then build the air file using adt.  adt throws an error about the size being invalid.

I'm not even going to attempt to make an air app for ios lol.... can't imagine it being accepted ever.  

david,

Mark.fromOP
Inspiring
October 30, 2012

You should give iOS a try, apple is a PITA but they are unquestionably the industry leader.

Mark.fromOP
Inspiring
October 30, 2012

Another thought. Maybe you do not need the 96px icon. Such is the case with the Kindle fire it uses a much higher resolution image on the home screen than the 72px max size that Air supports but it pulls it off the server, when you submit to amazon you include a 512px image and I believe that image is then used to create the home screen icon.

Mark.fromOP
Inspiring
October 30, 2012

At least its not Apple where this could cause the whole app to get rejected. Have you tried manually adding it?

MJD1981
Inspiring
May 10, 2013

This is now the case on Google Play. My APK just got rejected for not having 96x96, and I can't even add that at the command line!

Adobe Employee
May 10, 2013

Please try out the latest build available at http://labs.adobe.com/downloads/air.html, this should solve your problem, please let us knwo how it goes.

Regards,

Nimit