MIDP applications are called MIDlets, as are Java class files of a specific structure that are packaged with a descriptor file ( ) and an archive file (JAR) to comprise a MIDlet suite.
Because the IDE manages MIDP applications as MIDP projects, the IDE refers to MIDlets as the Java class files that are the basic units of a MIDP application, or MIDlet Suite.
A MIDlet extends the javax.microedition.midlet.MIDlet
class and
defines methods that are invoked by the Application Management Software (
).
The three abstract methods that define the MIDlet structure and lifecycle are:
startApp()
. Begins the active state, where the MIDlet
acquires necessary resources and initializes the application.pauseApp()
. The MIDlet stops and enters a paused state.
In this state, the MIDlet becomes inactive.destroyApp()
. The MIDlet enters the destroyed state.
In this state, the MIDlet releases all resources, saves any persistent data,
and terminates.