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.
How to get step count from Google Fit REST API like Google Fit app?
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.
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.
Is there any easier way of getting the values I need?