I have developed an application for Android, for storing user\'s GPS location.
One of my customers gave me his device and I noticed that sometimes the accuracy of t
There may be many reasons for this. Listing some of them.
(1) GPS hardware used with in device.
(2) Weather condition( This will not generate much difference in distance. This may make a difference of about 20-30 KM as per my testing )
(3) Nearby location. This includes buildings and all other.
It is true that some time Android GPS starts behaving wired. I also faced this problem while creating a cab based application.
Solution by CommonsWare is almost a solution to your problem. There you may come up with some more specific algo to do the task.
While testing this scenario, I found this problem with One-Plus-One devices while there was no issue with in One-Plus-Two devices.
SOLUTION : You should check for maximum distance a user can travel within your time frame. Here time frame is the time of update of your GPS Location. This distance should be calculated on behalf of your previous valid Latitude and Longitude with respect to your current Latitude and Longitude.
As per you logs I see the time difference between updates of your Location. Make sure that you have fix time intervals for your update.