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
Contributor
Posts: 37
Registered: ‎03-10-2011
My Device: Not Specified

How can I add icons into package sent on emulator

Hi all,

 

I got

 

<icon>
	<image16x16>icons/application-16.png</image16x16>
	<image32x32>icons/application-32.png</image32x32>
	<image48x48>icons/application-48.png</image48x48>
	<image128x128>icons/application-128.png</image128x128> 
</icon>

 in app.xml. And blackberry-airpackager obviously cannot find this icons, how can I embed them into package sent to emulator?

 

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

Re: How can I add icons into package sent on emulator

PlayBook does not use these icons (mainly because of the "non-standard" size).  You need to define the 86x86 icon in the blackberry-tablet.xml file.

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

Re: How can I add icons into package sent on emulator

See here:

 

<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>assets/splash.png</splashscreen>
  <icon>
  	<image>assets/icon_mendelbrot86.png</image>
  </icon>
</qnx>

 

You also need to include the icon in the packager command.

 

Contributor
Posts: 37
Registered: ‎03-10-2011
My Device: Not Specified

Re: How can I add icons into package sent on emulator

and how can I embed 86x86 icon and other files into package?

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

Re: How can I add icons into package sent on emulator

"C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\blackberry-tablet-sdk-0.9.4\bin\blackberry-airpackager" -package <APP>.bar -C bin-debug -installApp -launchApp src/<APP>-app.xml bin-debug/<APP>.swf bin-debug/blackberry-tablet.xml bin-debug/assets/<SPLASH>.png bin-debug/assets/<ICON>_86.png -password xxxx -device 192.168.xxx.xxx

 

Replce items in <TAG>.  See the icon tag.