MIDlet State Transitions : Basics « J2ME « Java

MIDlet State Transitions

MIDlet State Transitions

* StateTransitions.java
* Example from the book:     Core J2ME Technology
* Copyright John W. Muchow   http://www.CoreJ2ME.com
* You may use/modify for any non-commercial purpose
import javax.microedition.midlet.*;

public class StateTransitions extends MIDlet
  public StateTransitions()
    System.out.println("Inside constructor()");

  // Required: called by application manager to start the MIDlet.
  public void startApp()
    System.out.println("Inside startApp()");

  // Required: called by application manager to pause the MIDlet.
  public void pauseApp()
    System.out.println("Inside pauseApp()");

  // Required: called by application manager before shutting down the MIDlet.
  public void destroyApp(boolean unconditional)
    System.out.println("Inside destroyApp()");



Related examples in the same category

1.Example MIDletExample MIDlet
2.Hello MidletHello Midlet
3.Simple Midlet DemoSimple Midlet Demo
4.Basic MIDlet Shell
5.Welcome MIDletWelcome MIDlet
6.Welcome BackWelcome Back
7.Example jad file
8.MIDlet lifecycleMIDlet lifecycle
9.Goodbye WorldGoodbye World