Google Fit API Activity History

自闭症网瘾萝莉.ら 提交于 2019-12-02 06:03:16
abielita

You can check this documentation: Work with the Fitness History to get most frequent activity of the user. First, you need to read data from the fitness history by creating a subscription for each fitness data type you'd like to record. This enables your app to sync with data from other devices, and also allows for the passive recording of data on the device. Then create a DataReadRequest instance. You can see the sample code in the documentation.

The data request can specify multiple data types to return, effectively combining multiple data queries into one call. With this, you can compare which activity the user used most.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!