org.placelab.midp.stumbler
Class StumblerMidlet

java.lang.Object
  extended byjavax.microedition.midlet.MIDlet
      extended byorg.placelab.midp.stumbler.StumblerMidlet
All Implemented Interfaces:
javax.microedition.lcdui.CommandListener, StumblerListener, UIComponent

public class StumblerMidlet
extends javax.microedition.midlet.MIDlet
implements javax.microedition.lcdui.CommandListener, StumblerListener, UIComponent

This is the phone stumbler midlet which is the entry point for stumbling, analyzing stumble logs, and downloading/uploading map data.


Field Summary
 java.lang.StringBuffer stb
           
 
Constructor Summary
StumblerMidlet()
           
 
Method Summary
static void alert(java.lang.String str)
           
 void commandAction(javax.microedition.lcdui.Command c, javax.microedition.lcdui.Displayable d)
           
protected  void destroyApp(boolean arg0)
           
 void gotMeasurement(Measurement[] meas)
           
protected  void pauseApp()
           
 void showUI(UIComponent from)
          used by one component to activate another component
 void start()
           
protected  void startApp()
           
protected  void startStumbling(boolean useGPS)
           
 
Methods inherited from class javax.microedition.midlet.MIDlet
checkPermission, getAppProperty, notifyDestroyed, notifyPaused, platformRequest, resumeRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stb

public java.lang.StringBuffer stb
Constructor Detail

StumblerMidlet

public StumblerMidlet()
               throws java.io.IOException
Method Detail

start

public void start()

destroyApp

protected void destroyApp(boolean arg0)
                   throws javax.microedition.midlet.MIDletStateChangeException
Throws:
javax.microedition.midlet.MIDletStateChangeException

startApp

protected void startApp()
                 throws javax.microedition.midlet.MIDletStateChangeException
Throws:
javax.microedition.midlet.MIDletStateChangeException

showUI

public void showUI(UIComponent from)
Description copied from interface: UIComponent
used by one component to activate another component

Specified by:
showUI in interface UIComponent

pauseApp

protected void pauseApp()

startStumbling

protected void startStumbling(boolean useGPS)

commandAction

public void commandAction(javax.microedition.lcdui.Command c,
                          javax.microedition.lcdui.Displayable d)
Specified by:
commandAction in interface javax.microedition.lcdui.CommandListener

gotMeasurement

public void gotMeasurement(Measurement[] meas)
Specified by:
gotMeasurement in interface StumblerListener

alert

public static void alert(java.lang.String str)