Lines Matching refs:location
21 import android.location.Location;
22 import android.location.LocationListener;
23 import android.location.LocationManager;
24 import android.location.LocationProvider;
56 Log.e(TAG, "Could not get location manager.");
61 * Start listening for location updates.
70 * Stop listening for location updates.
90 maybeReportError("The last location provider is no longer available");
97 * Called when the location has changed.
98 * @param location The new location, as a Location object.
100 public void onLocationChanged(Location location) {
101 // Callbacks from the system location sevice are queued to this thread, so it's possible
105 nativeNewLocationAvailable(mNativeObject, location);
123 maybeReportError("The last location provider is no longer available");
129 * @param provider The name of the location provider that is now enabled.
144 * @param provider The name of the location provider that is now disabled.
152 maybeReportError("The last location provider was disabled");
156 * Registers this object with the location service.
172 Log.e(TAG, "Caught security exception registering for location updates from system. " +
178 * Unregisters this object from the location service.
190 // Callbacks from the system location sevice are queued to this thread, so it's possible
199 private static native void nativeNewLocationAvailable(long nativeObject, Location location);