检测机器人的速度 [英] Detect a speed in android
本文介绍了检测机器人的速度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是有可能使用GPS或加速计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 ?
推荐答案
是的,这是可以通过的的位置类。有 getSpeed()
在这个类中的方法。
Yes, it's possible using GPS via object of Location class. There is getSpeed()
method in this class.
这是很容易找到的$ C $越来越位置的温度。检查例如此链接。
It's very easy to find code of getting location. Check this link for example.
这篇关于检测机器人的速度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文