title: how to calculate phone's movement in the vertical direction from rest?
body: <p>I am developing an app using android OS for which I need to know how can I calculate the movement of the device up in the vertical direction. </p>
  
  <p>For example, the device is at rest (point A), the user picks it up in his hand (point B), now there is a height change between point A and point B, how would i calculate that?</p>
  
  <p>I have already gone through the articles about sensors and accelerometers, but I couldn't really find anything to help me with that. Anyone have any ideas?</p>