Skeleton of a MIDlet : MIDlet « J2ME « Java Tutorial






import javax.microedition.midlet.MIDlet;

public class MyMIDlet extends MIDlet {

  public MyMIDlet() {
    // constructor
  }

  public void startApp() {
    // entering active state
  }

  public void pauseApp() {
    // entering paused state
  }

  public void destroyApp() {
    // entering destroyed state
  }
}








31.1.MIDlet
31.1.1.Skeleton of a MIDlet
31.1.2.list Capabilitieslist Capabilities
31.1.3.KVM Properties
31.1.4.Retrieving the predefined properties
31.1.5.extends MIDletextends MIDlet
31.1.6.detect and report MIDlet run-time environment
31.1.7.A first MIDlet with simple text and a few commandsA first MIDlet with simple text and a few commands