我想知道如何计算加速度计movement.When我把水平处于闲置状态,同样的手机时,我将移动的手中,因此,有加速计值的变化时,它是水平放置或当它在手垂直。如何识别它们,任何样品codeS将是有益的。
i want to know how to calculate the accelerometer movement.When i place the mobile horizontally in idle state and similarly when i place the mobile in hands,So there accelerometer value change when it is place horizontally or while it is in hand vertically.How To Identify them,Any Sample Codes will be useful
你为什么不使用这个例子:
Why don't you use this example:
Android:我想动摇它
您可以检查每一个步骤和其他之间的时间差 - 这将帮助您模拟步
You can then check time difference between every step and other - this will help you simulate a step.