You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like a 0 being passed for distance when getting updates. This allows onLocationChange to keep firing even when location.distanceTo(oldLocation) == 0.0F. For now I will calculate the distance but this seems like a lot of radio usage.
The following line is passing in 0 for distance setting
currentUpdateRequest = new UpdateRequest(provider, timeInterval, 0, locationChangeListener);
It looks like a 0 being passed for distance when getting updates. This allows onLocationChange to keep firing even when location.distanceTo(oldLocation) == 0.0F. For now I will calculate the distance but this seems like a lot of radio usage.
The following line is passing in 0 for distance setting
currentUpdateRequest = new UpdateRequest(provider, timeInterval, 0, locationChangeListener);
https://developer.android.com/reference/android/location/LocationManager.html#requestLocationUpdates(java.lang.String, long, float, android.location.LocationListener)
The text was updated successfully, but these errors were encountered: