title: How to get speed in android app using Location or accelerometer or some other way
body: <p>I am working on app and try to get the speed and distance travelled by the user. I have used Google Play services location class to get the speed but it always returns me 0.0 value and not at all reliable. I wan accurate speed and distance travelled at real time.</p>
  
  <p>I have installed GPS Speedometer app on my device and its so perfect that even if i am walking then it gives me the speed. I want to get the same thing. I am confused in how to get speed, using location or using accelerometer or is there any other way to do it?</p>
  
  <p>My code is available on this link :- </p>
  
  <p><a href="https://stackoverflow.com/questions/20372079/drawing-path-on-google-maps-using-google-maps-android-api-v2">Drawing route on Google Maps using Google Maps Android API v2</a></p>
  
  <p>I am developing pure location based app which includes map, speed and other related things which are related to Locations.</p>
  
  <p>If anyone has any idea please kindly help me on resolving the issue of Speed and Distance.</p>