title: Is it possible to measure the how far the phone travels vertically
body: <p>I'm just wondering if it is possible / where would I get started in measuring the upwards and downwards movement of an Android device. I'd need it to be as accurate as possible.</p>
  
  <p>I'm quite lost of where to look I've seen there are certain methods <a href="https://developer.android.com/guide/topics/sensors/sensors_motion.html" rel="nofollow noreferrer">here</a>, and looking at <a href="https://stackoverflow.com/questions/13201788/vertical-movement-sensor?noredirect=1&amp;lq=1">these old questions</a> they mention it's quite difficult but I wanted to know if there had been any improvements since then in newer versions of android.</p>
  
  <p>The image below is an extra example of the the direction I would like the phone to move in.</p>
  
  <p><a href="https://i.stack.imgur.com/62Xwy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/62Xwy.png" alt="enter image description here"></a></p>