Fetching Google Fit Data into android application

后端 未结 5 1923
庸人自扰
庸人自扰 2021-01-14 09:08

How can we get the data stored in google fit cloud for a specific user? I tried using History API but no data is being displayed. Then i tried entering some data vai History

5条回答
  •  再見小時候
    2021-01-14 10:00

    Have you subscribe frist? I have same issue but solved after Fitness.RecordingApi.subscribe(mClient, myDataType)

    myDataType is DataType.TYPE_STEP_COUNT_DELTA or DataType.TYPE_STEP_COUNT_CUMULATIVE

提交回复
热议问题