I'm working on an Android app that uses Google Fit API
.
So far I've successfully fetched step deltas with
.aggregate(DataType.TYPE_STEP_COUNT_DELTA, DataType.AGGREGATE_STEP_COUNT_DELTA)
but at the moment I'm stuck with this one:
.aggregate(DataType.TYPE_CALORIES_EXPENDED, DataType.AGGREGATE_CALORIES_EXPENDED)
It seems like it works partially, because i get DataSets
of type com.google.calories.expended
, but they dont't have any DataPoints
.
Here is what i get:
DataSet{d:calories.expended:gms:aggregated []}
I was testing this on data from last 7 days, and it looks like that anytime. I couldn't find any informations on how calories are, or if they are measured via API, but as far as API collects steps, your weight and body height (which i filled in some time ago) then there is no reason not to measure it so it's ready for consuming.
So there are two questions: can I get AGGREGATE_CALORIES_EXPENDED
not-null values, and if yes, then how?