01-12-2010 01:52 AM
did anyone tried the tutorial on this site? http://na.blackberry.com/developers/resources/A11_
well i did and when i tried add the pictures at indicated in the tutorial they just wouldnt display properely (white blank page which is suppose to be the flag).
I tried resizing the pics and they are .pngs format.
Build id: M20080911-1700
Any help would be greatly appreciated
01-14-2010 02:06 AM
try following things:-
1)First check whether images are included in the project or not.if included then you can see those images in explorer view.
2)Open the images check whether they are opening in photshop correctly.
3)Check the path which you passed while creating bitmap, also check the argument.
01-14-2010 03:40 AM
_canadaImage = Bitmap.getBitmapResource("canada.png");
_ukImage = Bitmap.getBitmapResource("uk.png");
_usImage = Bitmap.getBitmapResource("us.png");
_defaultImage = Bitmap.getBitmapResource("smile.png");
here are my codes for the images part. I have checked the names and the format of the files are correct. I have gone into the folder itself and the pictures are not corrupted. I am still quite baffaled what could be wrong.
01-14-2010 05:49 AM
can you send me snapshot of package explorer view of your project .I want to see where is the images in your project.
you can also check whether canadaImage , _ukImage, _usImage , _defaultImage is null or not by putting conditions.
06-15-2012 11:24 AM
I know this is an old thread, but maybe this will help others. This worked for me.
When you create the Bitmap, do not put any directory struture in the resource string.
public static final Bitmap MY_LITTLE_IMG = Bitmap.getBitmapResource("mylittleimage.png");
Place the images in a new Resources director under Res
> > resources
> > > mylittleimage.png