从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()