1

I tried and found the speed of the car through location.getSpeed(); and location using GPS in Android and now I want to find acceleration and deceleration of the car. For that do I have any Android device parameters like GPS, or do I need to calculate from speed and time what I have now? I came to know that there is acceleration in the device, it is giving coordinates. I want to know how to calculate car acceleration and deceleration. Help with some work outs or any suggestions.

buddemat
  • 4,552
  • 14
  • 29
  • 49
Prasad
  • 121
  • 2
  • 12

1 Answers1

2

Use android sensor TYPE_LINEAR_ACCELERATION

Hoan Nguyen
  • 18,033
  • 3
  • 50
  • 54
  • There is a similar question already, please check this: http://stackoverflow.com/questions/7858759/android-type-linear-acceleration-sensor-what-does-it-show – Krunal Nov 14 '14 at 21:13