title: Google Fit Step Count
body: <p>I need to get my fit data to reflect that which shows in the android fit application. I have tried using the Sensor API, but this number reflects the amount of steps taken since the boot of the device, not for the day.</p>
  
  <p><a href="https://stackoverflow.com/questions/27998823/how-to-get-step-count-from-google-fit-rest-api-like-google-fit-app">How to get step count from Google Fit REST API like Google Fit app?</a></p>
  
  <p>I have also tried using the History API and querying for stepcount_cumulative and step_delta. Both of these values do not reflect the values of the fit API.</p>
  
  <p>I have come up with the idea of storing the previous day value in the sharedPref and subtracting the difference to get the true value. Other calculations for when the device resets need to be factored in as well.</p>
  
  <p>Is there any easier way of getting the values I need?</p>