How to use Android Accelerometer Detection

I want to know how to calculate the motion of an accelerometer. When I place my mobile horizontally in standby mode and similarly when I place my mobile in my hands so that the accelerometer value changes when it is placed horizontally or while it is in a vertical position. To define them any code examples would be helpful

+2


a source to share


1 answer


Why don't you use this example:

Android: I want to shake it up



Then you can check the time difference between each step and the other - this will help you simulate the step.

0


a source







All Articles