Lines Matching refs:location
20 import android.location.Location;
21 import android.location.LocationProvider;
26 * A class that handles everything about location.
33 private android.location.LocationManager mLocationManager;
37 new LocationListener(android.location.LocationManager.GPS_PROVIDER),
38 new LocationListener(android.location.LocationManager.NETWORK_PROVIDER)
51 public Location getCurrentLocation() {
56 Location l = mLocationListeners[i].current();
59 Log.d(TAG, "No location received yet.");
76 mLocationManager = (android.location.LocationManager)
82 android.location.LocationManager.NETWORK_PROVIDER,
87 Log.i(TAG, "fail to request location update, ignore", ex);
93 android.location.LocationManager.GPS_PROVIDER,
99 Log.i(TAG, "fail to request location update, ignore", ex);
113 Log.i(TAG, "fail to remove location listners, ignore", ex);
122 implements android.location.LocationListener {
123 Location mLastLocation;
129 mLastLocation = new Location(mProvider);
133 public void onLocationChanged(Location newLocation) {
142 android.location.LocationManager.GPS_PROVIDER.equals(mProvider)) {
146 Log.d(TAG, "Got first location.");
169 android.location.LocationManager.GPS_PROVIDER.equals(provider)) {
177 public Location current() {