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

Java 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
Contributor
Posts: 31
Registered: ‎02-09-2010
My Device: Storm
My Carrier: telus
Accepted Solution

Bitmap will not appear

I'm new at thisand I'm  not sure what I have done wrong, I have filled out the below before and the image appeared in the simulator, now it won't.... there are no errors ar warning flag showing

 

 

public

Bitmap logoBitmap = Bitmap.getBitmapResource("res/bitmap bottles_logo.png");

bitmapField = new BitmapField(logoBitmap, Field.FIELD_HCENTER);

add(bitmapField);

 

 

Can anyone tell me what I have done

Thank you in advance

Developer
Posts: 50
Registered: ‎09-01-2009
My Device: Not Specified

Re: Bitmap will not appear

Hey

 

i think you dont need to specify yur folder name in which your image is you can directly type your image name.

 

try this Bitmap logoBitmap = Bitmap.getBitmapResource("bitmap bottles_logo.png");


 

Contributor
Posts: 31
Registered: ‎02-09-2010
My Device: Storm
My Carrier: telus

Re: Bitmap will not appear

Thanks Gunjan

 

i was probobaly overthinking it being new

its the small things that will kill me

 

Cheers