Пример #1
0
 public void onLocationChanged(Location location) {
   try {
     logDebug("getLocation   locationListenerNetwork   onLocationChanged");
     timer1.cancel();
     logDebug(
         "getLocation   locationListenerNetwork  onLocationChanged getLatitude "
             + location.getLatitude());
     logDebug(
         "getLocation   locationListenerNetwork onLocationChanged getLongitude  "
             + location.getLongitude());
     locationResult.gotLocation(location.getLatitude(), location.getLongitude());
     lm.removeUpdates(this);
     lm.removeUpdates(locationListenerGps);
   } catch (Exception e) {
     // TODO: handle exception
     e.printStackTrace();
   }
 }
Пример #2
0
 public void onLocationChanged(Location location) {
   timer1.cancel();
   locationResult.gotLocation(location);
   lm.removeUpdates(this);
   lm.removeUpdates(locationListenerGps);
 }
Пример #3
0
 public void onLocationChanged(final Location location) {
   mTimer.cancel();
   mLocationResult.gotLocation(location);
   mLocationManager.removeUpdates(this);
   mLocationManager.removeUpdates(locationListenerGps);
 }
Пример #4
0
 public void onLocationChanged(Location location) {
   timer1.cancel();
   locationResult.gotLocation(location.getLatitude(), location.getLongitude());
   lm.removeUpdates(this);
   lm.removeUpdates(locationListenerNetwork);
 }