Detect a speed in android

后端 未结 1 2060
一整个雨季
一整个雨季 2020-12-18 12:10

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 ?

相关标签:
1条回答
  • 2020-12-18 12:23

    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.

    0 讨论(0)
提交回复
热议问题