I am using this code -
HorizontalFieldManager hfm = new HorizontalFieldManager();
this.add(hfm);
Bitmap HELLO_LOGO = Bitmap.getBitmapResource("test.jpg");
BitmapField helloBmpField = new BitmapField(HELLO_LOGO);
hfm.add(helloBmpField);
I have 3 files in the img folder under res - test.jpg,icon.png,tester.gif I also have a labelfield in the horizontal manager. Either of them show now but not both. I have checked the size of the image that is fine too. I have tried all 3 files one by one - it takes up some space on the screen but the image doesn't show up with any of the 3 files
Can someone please tell me what am I doing wrong Thanks
Check the
extension
of the name of the image you have put in yourres
folder. May be the image is named astest.JPG
(capital letter for extension) in theres
folder but in your code you've writtentest.jpg
(small letter for extension) or any other naming mistake like this...