Hello All...
I have just started to learn the basics of Blackberry....
So, I am facing one issue in Bitmap UI API of Blackberry..
I have a class called UiFunApplication which have main method :
public class UiFunApplication extends UiApplication {
public UiFunApplication() {
UiFunMainScreen mainScreen = new UiFunMainScreen();
pushScreen(mainScreen);
}
public static void main(String[] args) {
UiFunApplication app = new UiFunApplication();
app.enterEventDispatcher();
}
}
Now my UiMainScreen Class have following code :
public class UiFunMainScreen extends MainScreen {
BitmapField bitmapField;
public UiFunMainScreen() {
Bitmap logoBitmap = Bitmap.getBitmapResource("res/image.png");
bitmapField = new BitmapField(logoBitmap,Field.FIELD_HCENTER);
add(bitmapField);
LabelField labelField = new LabelField("Hello World");
add(labelField);
}
}
I have also included image.png in the res folder which is in the same directory structure as src.
Still in the simulator I am just getting the label called "Hello World", but not the image at the top.
Thanks in advance....