title: How to get acceleration and deceleration like a car in android?
body: <p>I have read a little about TYPE_LINEAR_ACCELERATION</p>
  
  <pre><code>private SensorManager mSensorManager;
  private Sensor mSensor;
  ...
  mSensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE);
  mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION);
  </code></pre>
  
  <p>but it return 3 values and i dont know how to work with them..</p>
  
  <p>I would like to have it in M/s like next pic
  <a href="https://i.stack.imgur.com/8grQs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8grQs.png" alt="enter image description here"></a></p>
  
  <p>I would like get a result like these devices:</p>
  
  <p><a href="https://i1.ytimg.com/vi/-P93vfFW0Ik/hqdefault.jpg" rel="nofollow noreferrer"><img src="https://i1.ytimg.com/vi/-P93vfFW0Ik/hqdefault.jpg" alt="enter image description here"></a></p>