Clarifications about the method onLocationChanged

view story

http://stackoverflow.com – I want to calculate the distance between my location and another location and write it in a TextView at intervals of time. I tried this: private LocationListener mLocationListener = new LocationListener() { @Override public void onLocationChanged(Location location) { Log.d(TAG_LOG, "In onLocationChanged(...)"); if(!mLatLngGpxList.isEmpty()) { Location loc = new Location(""); loc.setLatitude(mLatLngGpxList.get(0).getLatitude()); loc.setLongitude(mLatLngGpxList.get(0).getLongitude()); float distance = mCurrentLocation.dis (HowTos)