I want to read step counter data every month from Google, but the Google API is not supported by TimeUnit.YEAR, see
new DataReadRequest.Builder()
.aggregate(DataType.AGGREGATE_STEP_COUNT_DELTA, DataType.AGGREGATE_STEP_COUNT_DELTA)
.bucketByTime(30,TimeUnit.DAYS)
.setTimeRange(calendar.getTimeInMillis(),endCalendar.getTimeInMillis() , TimeUnit.MILLISECONDS)
.build()
I can get data every 30 days, not a month. The reason for the month may be 28.29.30 or 31 days.
So is there a way to get it?
source
share