m3g03.midp1
Class Main

java.lang.Object
  extended by javax.microedition.midlet.MIDlet
      extended by m3g03.midp1.Main
All Implemented Interfaces:
javax.microedition.lcdui.CommandListener

public class Main
extends javax.microedition.midlet.MIDlet
implements javax.microedition.lcdui.CommandListener

Test application to find out whether a phone supports M3G. After starting the application, it will write the result to the screen. Runs on CLDC 1.0/MIDP 1.0 or above.

Author:
Claus Hoefele

Field Summary
private  javax.microedition.lcdui.Command exitCommand
          Exit command.
 
Constructor Summary
Main()
          Constructor.
 
Method Summary
 void commandAction(javax.microedition.lcdui.Command command, javax.microedition.lcdui.Displayable displayable)
          Receives command actions.
 void destroyApp(boolean unconditional)
          Enters the destroyed state.
 void pauseApp()
          Enters the paused state.
 void startApp()
          Enters the active state.
 
Methods inherited from class javax.microedition.midlet.MIDlet
getAppProperty, notifyDestroyed, notifyPaused, resumeRequest
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

exitCommand

private javax.microedition.lcdui.Command exitCommand
Exit command.

Constructor Detail

Main

public Main()
Constructor.

Method Detail

startApp

public void startApp()
Enters the active state. Writes M3G information to the screen.

Specified by:
startApp in class javax.microedition.midlet.MIDlet

pauseApp

public void pauseApp()
Enters the paused state.

Specified by:
pauseApp in class javax.microedition.midlet.MIDlet

destroyApp

public void destroyApp(boolean unconditional)
Enters the destroyed state.

Specified by:
destroyApp in class javax.microedition.midlet.MIDlet
Parameters:
unconditional - if true, MIDlet is required to exit unconditionally.

commandAction

public void commandAction(javax.microedition.lcdui.Command command,
                          javax.microedition.lcdui.Displayable displayable)
Receives command actions.

Specified by:
commandAction in interface javax.microedition.lcdui.CommandListener
Parameters:
command - command.
displayable - source of the command.