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

Reply
Contributor
Normie
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

Please use plain text.
Developer
Gunjan
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");


 

Please use plain text.
Contributor
Normie
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

Please use plain text.