Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Posts: 166
Registered: ‎03-04-2011
My Device: Playbook
Accepted Solution

Adding an icon to -app.xml file give me an error

I'm developing an ActionScript 3.0 app for Playbook


I've added the following to -app.xml:




	<!-- We recommend omitting the supportedProfiles element, -->
	<!-- which in turn permits your application to be deployed to all -->
	<!-- devices supported by AIR. If you wish to restrict deployment -->
	<!-- (i.e., to only mobile devices) then add this element and list -->
	<!-- only the profiles which your application does support. -->
	<!-- <supportedProfiles>desktop extendedDesktop mobileDevice extendedMobileDevice</supportedProfiles> -->

	<!-- The subpath of the standard default installation location to use. Optional. -->
	<!-- <installFolder></installFolder> -->

	<!-- The subpath of the Programs menu to use. (Ignored on operating systems without a Programs menu.) Optional. -->
	<!-- <programMenuFolder></programMenuFolder> -->

	<!-- 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>
	</icon> -->

	<!-- Whether the application handles the update when a user double-clicks an update version
	of the AIR file (true), or the default AIR application installer handles the update (false).
	Optional. Default false. -->
	<!-- <customUpdateUI></customUpdateUI> -->



I get the following error:


Error occurred while packaging the application:

D:\SourceCode\AdobeAir\MyApp\bin-debug\MyApp-app.xml(154): error 103: application.icon.image is an unexpected element/attribute
Error: AIR validation failed


On BlackBerry Playbook Tablet UI GuideLines PDF I've read that an App icon must be a 86x86 PNG image a tag like this <image86x86></image86x86>


Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Adding an icon to -app.xml file give me an error

The icon definition goes in the blackberry-tablet.xml file:


  <!-- <permission>access_internet</permission> -->
  <!-- <permission>read_geolocation</permission> -->
  <!-- <permission>record_audio</permission> -->
  <!-- <permission>set_audio_volume</permission> -->
  <!-- <permission>use_camera</permission> -->


Posts: 146
Registered: ‎03-27-2011
My Device: Blackberry Playbook
My Carrier: WiFi

Re: Adding an icon to -app.xml file give me an error

You're actually going to want to specify your icon in the blackberry-tablet.xml, not your -app.xml. I'm on my mobile so I can't type much, but check out this post by Jrab for the info you need: http://supportforums.blackberry.com/t5/Tablet-OS-SDK-for-Adobe-AIR/flex-burrito-how-package-the-tabl...
If this post solved your problem, please click the 'Accept as Solution' button.
If you found this post useful, please provide a Kudo. Thanks.

Approved Apps: Celestial Slingshot