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
}
}