Home | History | Annotate | Download | only in app

Lines Matching refs:location

20 import android.location.Location;
27 * A class that handles legacy (network, gps) location providers, in the event
28 * the fused location provider from Google Play Services is unavailable.
34 private android.location.LocationManager mLocationManager;
38 new LocationListener(android.location.LocationManager.GPS_PROVIDER),
39 new LocationListener(android.location.LocationManager.NETWORK_PROVIDER)
47 public Location getCurrentLocation() {
54 Location l = mLocationListeners[i].current();
59 Log.d(TAG, "No location received yet.");
83 Log.v(TAG, "starting location updates");
90 android.location.LocationManager.NETWORK_PROVIDER,
95 Log.i(TAG, "fail to request location update, ignore", ex);
101 android.location.LocationManager.GPS_PROVIDER,
106 Log.i(TAG, "fail to request location update, ignore", ex);
115 Log.v(TAG, "stopping location updates");
121 Log.i(TAG, "fail to remove location listners, ignore", ex);
129 implements android.location.LocationListener {
130 Location mLastLocation;
136 mLastLocation = new Location(mProvider);
140 public void onLocationChanged(Location newLocation) {
147 Log.d(TAG, "Got first location.");
166 case android.location.LocationProvider.OUT_OF_SERVICE:
167 case android.location.LocationProvider.TEMPORARILY_UNAVAILABLE: {
174 public Location current() {