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 Contributor
Posts: 8
Registered: ‎01-05-2012
My Device: Playbook
My Carrier: None

Playbook *and* BB10 Icons?

Has anyone had any success with a single app that includes icons for both the playbook and BB10?

 

The documentation suggests that the OS will select the appropriate icon size for the current device automagically - but I couldn't find an official example of how you're meant to set this up.

 

I tried including the two icons in the bar-descriptor like this:

 

<icon>
     <image>Icon114.png</image>
     <image>Icon86.png</image>
</icon>

 

But when I do this, the first icon (which ever it is) is used every time (either giving me a small icon on the BB10, or giving me a dynamically downsized icon on the playbook ... which doesn't look as good as the precalculated one).

 

Any help greatly appreciated!

 

Cheers!

Highlighted
New Contributor
Posts: 8
Registered: ‎04-05-2011
My Device: Storm 9550
My Carrier: Globul

Re: Playbook *and* BB10 Icons?

Just a suggestion try only with 114 icon for both PlayBook and BB10.  Maybe PlayBoook will scale it?

 

New Contributor
Posts: 8
Registered: ‎01-05-2012
My Device: Playbook
My Carrier: None

Re: Playbook *and* BB10 Icons?

Thanks for the suggestion. This is what happens if you just put the 114 icon first in the list ... but unfortunately, the auto-scaling of non-integer multiples doesn't give you anywhere near as nice a result as a photoshop resized icon (resized from a much larger master). So it does work - but it means when I update my app for BB10, all the playbook users will get a worse icon, which is a bit of a shame.

 

I know I could ship two different builds - but I'd much rather go with a universal build, particularly when the docs suggest there should be a way of providing both icons in the bundle.

 

Does anyone have this working? Is there some bar-descriptor-fu I'm missing?

 

Developer
Posts: 93
Registered: ‎05-31-2012
My Device: BlackBerry Playbook
My Carrier: Bell

Re: Playbook *and* BB10 Icons?

This seems to be working OK with the Gold Master 10.0.9 SDK.