Thanks a lot for this wondefull and helpfull post.
On the other topic I found a lot of explanation but it's a good idea to post a resume here.
Very good work and thanks again
Edit => Arff I spoke too fast. In fact when I use your customMainScreen and make my application extends it nothing appear.
For example my first screen display a picture
Code:
//invoke the MainScreen constructor
super();
deleteAll();
removeAllMenuItems();
taillehorizon = Display.getWidth();
taillevertical = Display.getHeight();
deleteAll();
bmp = new Bitmap(taillehorizon , taillevertical);
picture = new BitmapField(bmp.getBitmapResource("Accueil.png"));
add(picture);
addMenuItem(menu1);
addMenuItem(menu2);
So what's wrong???
My menuItems are present but not the picture. I have only a white screen
REdit => Maybe I should implement delete() and deleteAll() as you implement add()??
Edit again=> So when I implement delete() and deleteAll() it works fine for the first screen. But my program call other function and the background hasn't the color and fields don't appear.
In fact I use only one screen and I delete what I want and replace by new field to make my new screen.
Why the CustomMainScreen isn't used?? And how can I tell the program to keep it??