Prasad
Prasad

Reputation: 75

Acceleration and deceleration of car using Android device

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.

Upvotes: 1

Views: 1757

Answers (1)

Hoan Nguyen
Hoan Nguyen

Reputation: 18151

Use android sensor TYPE_LINEAR_ACCELERATION

Upvotes: 2

Related Questions