Search code examples
androidperformancezerolocationlistener

Android When I stand in one place I got more locationChangeEvent


I made a simple GPS. app. for android, storing the route coordinates into file. I'm confused, I got more onLocationChanged event when I stand in one place. The bearing and speed was zero of course in the Location when the event comes, but it Is interested, because I used 1 meter for minDistance when I registered the LocationListener. (the minTime was zero)


Solution

  • Are you sure that the values returned by getLatitude and getLongitude are identical to their previous values? Normal GPS is only accurate to within a meter or two, so it seems to me that random shifting of your location as perceived by your GPS sensor could be the problem.