如何检测手机运动? [英] How to detect phone motion ?

查看:114
本文介绍了如何检测手机运动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想检测我的手机的动作.实际上我有一个代码,但是它不能正常工作.我想以度为单位来移动电话.谁能帮我??请...

Hi,

I Want to detect my phone''s motion. Actually I have a code, But it doesn''t work properly. I want to get the motion of my phone in Degree. Can any one Help me?? pls...

推荐答案

您可以使用加速度计来完成您的工作.

检查此-
如何检测android设备的运动? [ ^ ]

aslo检查这些文档和教程-
http://developer.android.com/guide/topics/sensors/sensors_overview.html [ ^ ]
http://developer.android.com/guide/topics/sensors/sensors_motion.html [ ^ ]
http://code.tutsplus.com/tutorials/using-the-accelerometer -on-android--mobile-22125 [
You can use of accelerometer to get your job done.

Check this-
How to detect movement of an android device?[^]

aslo check these documentations and tutorials-
http://developer.android.com/guide/topics/sensors/sensors_overview.html[^]
http://developer.android.com/guide/topics/sensors/sensors_motion.html[^]
http://code.tutsplus.com/tutorials/using-the-accelerometer-on-android--mobile-22125[^]


Hope, it helps :)


这篇关于如何检测手机运动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆