title: Using accelerometer, gyroscope and compass to calculate device's movement in 3D world
body: <p>I'm working on an android application which can calculate device's movement in 6 direction. I think I can use acceleration as;</p>
  
  <p>"<strong>x=a.t^2</strong>" but a is not a constant. And this is the problem. How can I calculate the total movement?? </p>