uk.co.silentsoftware.reader
Class IntegratedGPSReader

java.lang.Object
  extended by uk.co.silentsoftware.reader.IntegratedGPSReader
All Implemented Interfaces:
javax.microedition.location.LocationListener, GPSReader

public class IntegratedGPSReader
extends java.lang.Object
implements GPSReader, javax.microedition.location.LocationListener

Simple class to associate with an integrated GPS and read the NMEA data in, making a call back to the current displayed view


Constructor Summary
IntegratedGPSReader()
          Default constructor
 
Method Summary
 void discoverGPS()
          Find, connect and read from the GPS (push results to FollowMe.pushDataToView(...))
 void locationUpdated(javax.microedition.location.LocationProvider lp, javax.microedition.location.Location loc)
           
 void providerStateChanged(javax.microedition.location.LocationProvider lp, int arg1)
           
 void shutdown()
          Shut down the GPS
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegratedGPSReader

public IntegratedGPSReader()
                    throws javax.microedition.location.LocationException
Default constructor

Throws:
javax.microedition.location.LocationException - if provider unavailable/integrated GPS does not exist
Method Detail

locationUpdated

public void locationUpdated(javax.microedition.location.LocationProvider lp,
                            javax.microedition.location.Location loc)
Specified by:
locationUpdated in interface javax.microedition.location.LocationListener

providerStateChanged

public void providerStateChanged(javax.microedition.location.LocationProvider lp,
                                 int arg1)
Specified by:
providerStateChanged in interface javax.microedition.location.LocationListener

shutdown

public void shutdown()
Description copied from interface: GPSReader
Shut down the GPS

Specified by:
shutdown in interface GPSReader

discoverGPS

public void discoverGPS()
Description copied from interface: GPSReader
Find, connect and read from the GPS (push results to FollowMe.pushDataToView(...))

Specified by:
discoverGPS in interface GPSReader