Search code examples
androidgpsaccelerometer

Detect a speed in android


is it possible to detect a speed of a car using GPS or accelerometer in android phone ?

can anyone give me the road map to implement this ?


Solution

  • Yes, it's possible using GPS via object of Location class. There is getSpeed() method in this class.

    It's very easy to find code of getting location. Check this link for example.