title: Best way to track Android phone in a moving car
body: <p>I am creating an app which send GPS coordinates once location is change. I need to send data only when the vehicle is moving. How can I get to know this. I got two options</p>
  
  <ol>
  <li>Using <code>onLocationChanged, getSpeed();</code></li>
  <li>Using the Accelerometer</li>
  </ol>
  
  <p>What is the best way to do this?</p>