Welcome!

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

Reply
Developer
VansFannel
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:

 

 

  </initialWindow>

	<!-- 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>
		<image16x16></image16x16>
		<image32x32></image32x32>
		<image36x36></image36x36>
		<image48x48></image48x48>
		<image72x72></image72x72>
		<image128x128></image128x128>
	</icon> -->
	<icon>
		<image>assets/images/icon.png</image>
	</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>

 

Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10

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

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

 

<qnx>
  <initialWindow>
    <systemChrome>none</systemChrome>
    <transparent>false</transparent>
  </initialWindow>
  <publisher>o2interactive</publisher>
  <category>core.games</category>
  <!-- <permission>access_internet</permission> -->
  <permission>access_shared</permission>
  <permission>play_audio</permission>
  <!-- <permission>read_geolocation</permission> -->
  <!-- <permission>record_audio</permission> -->
  <!-- <permission>set_audio_volume</permission> -->
  <!-- <permission>use_camera</permission> -->
  <splashscreen></splashscreen>
  <icon>
  	<image>myiconpathhere.png</image>
  </icon>
</qnx>

 

Please use plain text.
Developer
Brandon_Appetizer
Posts: 146
Registered: ‎03-27-2011
My Device: Blackberry Playbook

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
Please use plain text.