2

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

Raghav Sood
  • 79,170
  • 20
  • 177
  • 186
Rakesh
  • 14,229
  • 12
  • 36
  • 60

1 Answers1

0

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.

Community
  • 1
  • 1
Thomas Gatt
  • 839
  • 9
  • 9