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

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



<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.


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:



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