Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.
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.