Problem: while stationary Android GPS gives different location updates - closed

I am working on an Android application where I am trying to track the movement of a device from a service. The service is registered for location updates, here we make sure that we ask for a "GPS Provider" and not a network provider (which may be inaccurate.)

Upon call

public void requestLocationUpdates (row provider, long minTime, float minDistance, ListListener)

Provider

- "gps"

and minTime and minDistance are zero to get the best possible results.

However, when the device is stationary on the table, it receives GPS updates that are so different from each other that we actually get an average speed (measured by dividing the distance by the time interval between location updates) of more than 5 mph, averaged over the last 5 updates location.

This completely destroys the application logic. What could be the reason that the Android device (EVO 4, HTC MyTouch) gives different location updates, being completely stationary? Can anyone suggest a way to get rid of this incorrect location update from the correct ones?

Appreciate your feedback.

Thank.

Pritam.

Update:

, 30- GPS GPS.

+3
1

: .

GPS . ( ) , , . .

, , , .

+1

Source: https://habr.com/ru/post/1766165/


All Articles