08-25-2010 12:05 PM
This may have been obvious to everyone but a newbie like me, but I spent a lot of time trying to figure out why
Bitmap b = Bitmap.getBitmapResource("myfile.png")
always returned null.
It turns out I imported the file myfile.png to into the project folder "myproject" instead of importing it to the source folder "myproject/src".
right-click on myproject/src
choose general, then "file system", then Next
Then browse for the file you are trying to import.
Hope it saves someone some time.
08-25-2010 02:26 PM
I use net.rim.device.api.system.Bitmap
Bitmap logotipo = Bitmap.getBitmapResource("yourLogo.png");
HorizontalFieldManager logoManager = new HorizontalFieldManager(Field.FIELD_HCENTER);