A MIDlet lifecycle have following steps...
By default MIDlet is in the paused states. when the application is executed by default startApp() method will call and when close the application the destroyApp() method will be called. But when your constructor is not null type then it will be executed firstly. The source code of life cycle execution is as follows:
import javax.microedition.lcdui.*;
|

Fig: MIDlet Lifecycle
Output:

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
Ask Questions? Discuss: Midlet Lifecycle View All Comments
Post your Comment