从Google Fit API获取活动(运动)列表 [英] Getting list of activities(Movements) from google fit api

查看:297
本文介绍了从Google Fit API获取活动(运动)列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建可以使用Google Fit API的应用程序. 我想让所有的活动(运动)在谷歌适合.此处Google的活动列表适合参考.

I am creating application which can use google fit api. I want to get all the activities(Movements) available in the google fit. Here the list of activities in google fit Reference.

已编辑

我知道如何获取用户执行的活动的方法,但是我想要google fit API中可用的活动的完整列表(不仅是用户执行的活动,还需要整个活动列表),例如列表在上面的链接中可用.

I know the way how to get the activities which performed by user, But i want complete list of activities which available in the google fit API (Not only the activity which performed by user, need whole list of activities) like the list available in the above link.

推荐答案

您可以使用以下方式以编程方式获取所有这些字段的列表:

You can programmatically get a list of all these fields using:

FitnessActivities.class.getFields()

这篇关于从Google Fit API获取活动(运动)列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆