import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
/**
* An example MIDlet with simple "Hello" text. * Refer to the startApp, pauseApp, and destroyApp
* methods so see how each handles the requested transition. */
public class ConsoleHelloMIDlet extends MIDlet
{
/** * Start up the Hello MIDlet. Just write some info */
public void startApp() {
System.out.println( "\nHello Camp" );
pauseApp();
}
/** Pause is a no-op since there are no background activities or record stores that need to be closed. */
public void pauseApp() {
System.out.println( "In pauseApp... " );
destroyApp( true );
}
/** Destroy must cleanup everything not handled by the garbage collector In this case there is nothing to cleanup. */
public void destroyApp(boolean unconditional) {
System.out.println( "In destroyApp... " );
}
}
import javax.microedition.lcdui.*;
/**
* An example MIDlet with simple "Hello" text. * Refer to the startApp, pauseApp, and destroyApp
* methods so see how each handles the requested transition. */
public class ConsoleHelloMIDlet extends MIDlet
{
/** * Start up the Hello MIDlet. Just write some info */
public void startApp() {
System.out.println( "\nHello Camp" );
pauseApp();
}
/** Pause is a no-op since there are no background activities or record stores that need to be closed. */
public void pauseApp() {
System.out.println( "In pauseApp... " );
destroyApp( true );
}
/** Destroy must cleanup everything not handled by the garbage collector In this case there is nothing to cleanup. */
public void destroyApp(boolean unconditional) {
System.out.println( "In destroyApp... " );
}
}
No comments:
Post a Comment