java.lang.Object | |
↳ | android.location.GpsStatus |
This class represents the current state of the GPS engine.
This class is used in conjunction with the GpsStatus.Listener
interface.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
GpsStatus.Listener | Used for receiving notifications when GPS status has changed. | ||||||||||
GpsStatus.NmeaListener | Used for receiving NMEA sentences from the GPS. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | GPS_EVENT_FIRST_FIX | Event sent when the GPS system has received its first fix since starting. | |||||||||
int | GPS_EVENT_SATELLITE_STATUS | Event sent periodically to report GPS satellite status. | |||||||||
int | GPS_EVENT_STARTED | Event sent when the GPS system has started. | |||||||||
int | GPS_EVENT_STOPPED | Event sent when the GPS system has stopped. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the maximum number of satellites that can be in the satellite
list that can be returned by
getSatellites() . | |||||||||||
Returns an array of
GpsSatellite objects, which represent the
current state of the GPS engine. | |||||||||||
Returns the time required to receive the first fix since the most recent
restart of the GPS engine.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Event sent when the GPS system has received its first fix since starting.
Call getTimeToFirstFix()
to find the time from start to first fix.
Event sent periodically to report GPS satellite status.
Call getSatellites()
to retrieve the status for each satellite.
Event sent when the GPS system has started.
Event sent when the GPS system has stopped.
Returns the maximum number of satellites that can be in the satellite
list that can be returned by getSatellites()
.
Returns an array of GpsSatellite
objects, which represent the
current state of the GPS engine.
Returns the time required to receive the first fix since the most recent restart of the GPS engine.