In my own application, I use a Handler to pollLocationManager#getLastKnownLocation every second, compare the currentvalue with the previous value. If they are not equal, I increase themoving time by 1 second.

The acture problem is that the location value changes even when thephone is not moving.