How To use Android Accelerometer Detection
i want to know how to calculate the accelerometer movement.When i place the mobile horizontally in idle state and similarly when i place t开发者_如何学JAVAhe 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: I want to shake it
You can then check time difference between every step and other - this will help you simulate a step.
精彩评论