![]() 56
Figure 2. 24
States of MIDlet and the Transition between Them
There are three
states of MIDlet, which are active, paused, and destroyed. When the
MIDlet is first installed, AMS creates an instance of it and put it into paused state. The
pause stated MIDlet
is waiting
fo r a chance
to become active. It become active when
the
startApp() method is called when the user runs the application. When there is some event
that
calls
pauseApp()
method,
such
as
incoming
call,
the
MIDlet
will
be
put
into
the
paused state again. It will become active again after the event
is
finished. When
the
user
exits the application, destroyApp() method is called and AMS put the MIDlet into
destroyed state. Paused MIDlet application can also be destroyed.
|