|
Slide 3.10: Line-by-line anatomy of HelloMIDlet.java (cont.) Slide 3.12: Line-by-line anatomy of HelloMIDlet.java (cont.) Home |
|
HelloMIDlet.java (Cont.)
Paused state.
Active state after the application manager calls startApp( ).
Active, the JAM can suspend its execution by calling pauseApp( ), which puts the MIDlet back in the Paused state.
destroyApp( ), at which point the MIDlet is Destroyed and patiently awaits garbage collection.
display = Display.getDisplay(this);Display object that is unique to this MIDlet.
cmdExit = new Command("Exit", Command.SCREEN, 1);label — The label string is what the application requests to be shown to the user to represent this command.
commandType — The command types include BACK, CANCEL, EXIT, HELP, ITEM, OK, SCREEN, or STOP.public static final int SCREEN specifies an application-defined command that pertains to the current screen.
priority — The application uses the value to describe the importance of this command relative to other commands on the same screen.