title: How to find device position change using accelerometer?
body: <p>I am designing a Windows Phone 7 project where I need to determine position changes of the device. I tried to use accelerometer, but it gives info on current orientation of my phone and I don't know how to convert this data to position delta. Here is some example code:</p>
  
  <pre><code>void acc_CurrentValueChanged(object sender, SensorReadingEventArgs&lt;AccelerometerReading&gt; e)
  {
      AccelerometerReading newdata = e.SensorReading;
      Vector3 vect = newdata.Acceleration - data.Acceleration;
      //what comes here???
  }
  </code></pre>
  
  <p>The method above is called when accelerometer data is changed. But I don't know how to convert this data to position change of a device (i.e. I move my phone in X direction)</p>