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(); } }
public void onLocationChanged(Location location) { timer1.cancel(); locationResult.gotLocation(location); lm.removeUpdates(this); lm.removeUpdates(locationListenerGps); }
public void onLocationChanged(final Location location) { mTimer.cancel(); mLocationResult.gotLocation(location); mLocationManager.removeUpdates(this); mLocationManager.removeUpdates(locationListenerGps); }
public void onLocationChanged(Location location) { timer1.cancel(); locationResult.gotLocation(location.getLatitude(), location.getLongitude()); lm.removeUpdates(this); lm.removeUpdates(locationListenerNetwork); }