org.placelab.midp.debug
Class BluetoothGPSSpotterMidlet
java.lang.Object
javax.microedition.midlet.MIDlet
org.placelab.midp.debug.BluetoothGPSSpotterMidlet
- All Implemented Interfaces:
- javax.microedition.lcdui.CommandListener, ScanOnceListener, SpotterListener
- public class BluetoothGPSSpotterMidlet
- extends javax.microedition.midlet.MIDlet
- implements ScanOnceListener, javax.microedition.lcdui.CommandListener
Communicates with a bluetooth GPS device and displays a human readable
version of the NMEA sentences produced
| 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 |
form
protected javax.microedition.lcdui.Form form
alive
protected boolean alive
gpsStringItem
protected javax.microedition.lcdui.StringItem gpsStringItem
myList
protected java.util.Vector myList
instance
public static BluetoothGPSSpotterMidlet instance
BluetoothGPSSpotterMidlet
public BluetoothGPSSpotterMidlet()
startApp
protected void startApp()
throws javax.microedition.midlet.MIDletStateChangeException
- Throws:
javax.microedition.midlet.MIDletStateChangeException
pauseApp
protected void pauseApp()
destroyApp
protected void destroyApp(boolean flag)
throws javax.microedition.midlet.MIDletStateChangeException
- Throws:
javax.microedition.midlet.MIDletStateChangeException
getForm
protected javax.microedition.lcdui.Form getForm()
getGPSStringItem
public javax.microedition.lcdui.StringItem getGPSStringItem()
start
public void start()
gotMeasurement
public void gotMeasurement(Spotter sender,
Measurement m)
- Specified by:
gotMeasurement in interface SpotterListener
endOfScan
public void endOfScan(Spotter sender)
- Description copied from interface:
ScanOnceListener
- Sent when a Spotter doing scanOnce concludes its operation.
- Specified by:
endOfScan in interface ScanOnceListener
- Parameters:
sender - the Spotter that has concluded its scanOnce operation- See Also:
Spotter.scanOnce(),
Spotter.scanOnce(EventSystem)
updateList
public void updateList()
appendString
public void appendString(java.lang.String s)
commandAction
public void commandAction(javax.microedition.lcdui.Command c,
javax.microedition.lcdui.Displayable d)
- Specified by:
commandAction in interface javax.microedition.lcdui.CommandListener
spotterExceptionThrown
public void spotterExceptionThrown(Spotter s,
SpotterException ex)
- Specified by:
spotterExceptionThrown in interface SpotterListener