Detect a speed in android

你说的曾经没有我的故事 提交于 2019-11-28 02:09:49

问题


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:


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.



来源:https://stackoverflow.com/questions/4497234/detect-a-speed-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!