LocationListenerpublic interface LocationListener Used for receiving notifications from the LocationManager when
the location has changed. These methods are called if the
LocationListener has been registered with the location manager service
using the {@link LocationManager#requestLocationUpdates(String, long, float, LocationListener)}
method. |
Methods Summary |
---|
public void | onLocationChanged(Location location)Called when the location has changed.
There are no restrictions on the use of the supplied Location object.
| public void | onProviderDisabled(java.lang.String provider)Called when the provider is disabled by the user. If requestLocationUpdates
is called on an already disabled provider, this method is called
immediately.
| public void | onProviderEnabled(java.lang.String provider)Called when the provider is enabled by the user.
| public void | onStatusChanged(java.lang.String provider, int status, android.os.Bundle extras)Called when the provider status changes. This method is called when
a provider is unable to fetch a location or if the provider has recently
become available after a period of unavailability.
|
|