Search code examples
androidgpsaccelerometer

Calculating user moving speed in android


I need to calculate Speed with which the user is moving. So we need two things to calculate speed which are GPS and Accelerometer.

But both have their limitations.

1)GPS is not available all the time.While I getting the current location of user always I am getting from Network provider only and not from GPS.

2)Accelerometer is not accurate.

So which approach should I go with?


Solution

  • An implementation, based on the GPS, is available at this link