Full screen Canvas Splash screen in Java ME
This code snippet shows how to create a full screen splash screen in Java ME using the Canvas.
To implement it you will have to do following things.
- Create the class which extends canvas
- Set the color inside paint method
- In paint() first draw the Square using width and height of the mobile screen
g.fillRect(0, 0, width, height);(0xffffff);
- Create Image:
- Draw the image at the center of the screen
Limitation Of Alternative
Some applications display a splash screen using alert but that does not display it in full screen and generally this lacks the professional look.