initializing state variables and preparing to be run in its constructor or startApp()
methods, it may appear to be stalled to users.
The flow below depicts MIDlet State Transitions.
Running
Running
Application
Application
notifyDestroyed()
notifyDestroyed()
The following table shows MIDlet State Transition methods.
Method
Constructor
startApp()
Application
Application
Constructor
Constructor
pauseApp()
pauseApp()
destroyApp()
destroyApp()
Caller
Purpose
AMS
Initializes the MIDlet – should return quickly
AMS
The startApp() method is called to start the
application either from a newly constructed state or from a
paused state.
If the startApp() is called from a paused state, the
MIDlet should not re-initialize the instance variables(unless
it is the desired behavior).
The startApp() method may be called multiple times
during the lifespan of the MIDlet.
The MIDlet may set the current display to its own
Displayable from the startApp() method, but is shown
only after the startApp() returns.
When exiting a paused application, the KVM calls
startApp() first followed by a call to
destroyApp()
Starting
Starting
startApp()
startApp()
Exit
Exit
Application
Application
Paused
Paused
Application
Application