March 2002
Intermediate to advanced
400 pages
8h 44m
English
MIDlets transition to different states during their lifetime. The MIDP specification defines the MIDlet state transition model. Table 3.1 lists the possible MIDlet states and their respective descriptions.
Figure 3.5 shows a state transition diagram that represents these MIDlet states and the events that cause transition from one state to another. The startApp(), pauseApp(), and destroyApp() methods that you saw in Listing 3.1 allow a MIDlet to change its state. Technically, the device application management software changes the state of a MIDlet by calling one of these methods on the MIDlet. A MIDlet can't change its own state, although it can request a state change from the AMS.
Read now
Unlock full access