FileDocCategorySizeDatePackage
DummyMIDlet1.javaAPI DocphoneME MR2 API (J2ME)1885Wed May 02 18:00:02 BST 2007com.sun.midp.appmanager

DummyMIDlet1

public class DummyMIDlet1 extends javax.microedition.midlet.MIDlet
A dummy MIDlet that displays set its current displayable to an alert when active and sets its displayable to null when paused.

Fields Summary
private boolean
firstStart
Constructors Summary
Methods Summary
public voiddestroyApp(boolean unconditional)

    
public voidpauseApp()

        Display.getDisplay(this).setCurrent(null);
    
public voidstartApp()


       
        // Don't request the foreground on the first startApp call.
        if (!firstStart) {
            Alert a = new Alert("MIDlet 1");
            a.setTimeout(Alert.FOREVER);
            Display.getDisplay(this).setCurrent(a);
        }

        firstStart = false;