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

Native Development


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.


Reply
New Developer
Posts: 14
Registered: ‎11-28-2013
My Device: BlackBerry Z30
My Carrier: BlackBerry

Icon size becomes smaller when it built on Release mode

I'm developing a game with cocos2dx and I'm having a problem where the application icon isn't showing with the correct size while building on Release mode.

 

I have 3 icons:

icon.png, icon_94.png, icon_114.png

 

When I try to build it on Debug mode, I believe it uses icon_114 but when I try to build on Release mode, it uses icon.png (86x86)

 

I have these define in bar-descriptor.xml

<icon>
<image>icon.png</image>
<image>icon_114.png</image>
</icon>

 

<asset path="icon.png">icon.png</asset>
<asset path="icon_114.png">icon_114.png</asset>

 

I'm not sure what went wrong and hopefully someone who might know willing to share with me how can fix it.

 

Highlighted
Retired
Posts: 252
Registered: ‎08-17-2012
My Device: BlackBerry Z10 and Q10
My Carrier: Bell

Re: Icon size becomes smaller when it built on Release mode

Hi cardrickloh,

 

I recommend you define only one icon in the bar-descriptor.xml file. As per the design guidelines, this icon needs to be 114x114 or 94x94 depending on the device resolution. The OS takes care of this automatically if you place the icon images in the correct asset folder for each resolution.

 

Static asset selection mechanism: http://developer.blackberry.com/native/documentation/cascades/best_practices/resolution/using_static...

 

bar-descriptor configuration: http://developer.blackberry.com/native/documentation/core/com.qnx.doc.ide.userguide/topic/capabiliti...

 

icon attribute of the bar-descriptor:

http://developer.blackberry.com/native/documentation/core/com.qnx.doc.native_sdk.devguide/topic/r_ba...

@SamarAbdelsayed

Did this answer your question? Please accept post as solution.
Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker