Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
12-14-2012 07:06 PM
I am trying to package my app using command-line tools, specifically blackberry-airpackager. The bar-descriptor.xml says:
and the icon is in the same folder as all the other files being packaged (the -app.xml, .swf, .ane, etc). I specify myicon to be packaged as one of the parameters of the airpackager.
I get the warning message: Warning: Using default icon ...\blackberry-tablet-default-icon.png
Both myicon.png AND blackberry-tablet-default-icon.png are packaged in the .bar (I know this because I rename it to .zip and open it to look) but ONLY the blackberry-tablet-default-icon.png is used.
The only way I can get it to work properly is to rename it and place it in the sdk folders so that it picks up the icon from the sdk folders ... but this seems kludgey.
Any hints from anyone on what I might be doing wrong? Thx in advance.
12-15-2012 02:32 AM
The icon file name has to include the "114x114" as part of the actual filename on your system; the "114x114" is not
something that gets inferred by convention.
Those "<xdimension>x<ydimension>"names are just suggested convenient mnemonics.
Are you by any chance working on WIndows, and does your icon file by any chance have its extension in all
caps (i.e. .PNG instead of .png)?
QNX is POSIX compliant and filenames are therefore case sensitive.
12-15-2012 06:43 AM
Hi and thanks for the reply and suggestions. I have checked and now double checked all the items you mentioned and still no luck.
My best solution has been to simply have it give me the warning, and substitute my own icon for the 'default' icon in the sdk.
12-15-2012 09:59 AM
12-15-2012 10:42 AM
12-15-2012 02:44 PM
The key is to verify that when you unzip your bar file, the path specified in your bar-descriptor.xml file matches exactly the filename (which is case sensitive), as well as the filepath relative to the air directory in your .bar.
So, if your bar-descriptor.xml file says:
then the file "icon114.png" needs to have gotten packaged into the air/assets/icons directory in your .bar.
Depending on your build settings you may have set things up to package files with or without a tail path.
Having your icon file exist somewhere in the directory structure that is not exacly the path called out in
bar-descriptor.xml will result in it grabbing the default icon.
12-16-2012 04:45 AM - edited 12-16-2012 04:45 AM
I usually just name my icon blackberry-tablet-icon.png
and in the bar-descriptor.xml I use the following line:
Nowhere else do I specify this icon or any other icons and my apps always work out fine in the icon-department.