【发布时间】:2018-12-21 15:08:10
【问题描述】:
我正在使用 Google Fit History API。它工作正常,我正在插入步骤。
// Create a data set
int stepCountDelta = 950;
DataSet dataSet = DataSet.create(dataSource);
// For each data point, specify a start time, end time, and the data value -- in this case,
// the number of new steps.
DataPoint dataPoint =
dataSet.createDataPoint().setTimeInterval(startTime, endTime, TimeUnit.MILLISECONDS);
dataPoint.getValue(Field.FIELD_STEPS).setInt(stepCountDelta);
dataSet.add(dataPoint);
// [END build_insert_data_request]
现在响应返回成功,但是当我检查 Google Fit dashboard 时,它没有接收到数据,并且数据没有从我的应用程序与 Google Fit 同步。如何获取同步数据?目前我们的设备上没有安装 Google Fit 默认应用。
【问题讨论】:
标签: android google-fit