活动类型
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Google 健身为一组活动类型定义了整数常量值。插入以下类型的数据点时,请使用这些值以确保各应用之间的一致性:
com.google.activity.sample
com.google.activity.segment
com.google.activity.summary
这些常量用于定义数据点的 activity
字段中的活动类型。
活动类型值
下表列出了每种活动类型的常量值。
活动类型 |
整数值 |
有氧运动 |
9 |
射箭 |
119 |
羽毛球 |
10 |
棒球 |
11 |
篮球 |
12 |
冬季两项 |
13 |
骑车 |
1 |
手骑 |
14 |
山地骑行 |
15 |
公路自行车骑行 |
16 |
纺织 |
17 |
固定自行车骑行 |
18 |
多用途自行车骑行 |
19 |
拳击 |
20 |
健美体操 |
21 |
循环训练 |
22 |
板球 |
23 |
混合健身 |
113 |
冰壶 |
106 |
跳舞 |
24 |
潜水 |
102 |
电梯 |
117 |
椭圆机训练 |
25 |
测力计训练 |
103 |
自动扶梯 |
118 |
击剑 |
26 |
橄榄球(美式) |
27 |
足球(澳大利亚) |
28 |
足球 |
29 |
飞盘 |
30 |
园艺 |
31 |
高尔夫 |
32 |
呼吸指导 |
122 |
体操 |
33 |
手球 |
34 |
高强度间歇训练 |
114 |
徒步 |
35 |
曲棍球 |
36 |
骑马 |
37 |
家务 |
38 |
滑冰 |
104 |
乘车 |
0 |
间歇训练 |
115 |
跳绳 |
39 |
皮划艇 |
40 |
壶铃训练 |
41 |
跆拳道 |
42 |
风筝冲浪 |
43 |
武术 |
44 |
冥想 |
45 |
综合格斗 |
46 |
其他(未分类的健身活动) |
108 |
P90X 锻炼 |
47 |
滑翔伞飞行 |
48 |
普拉提 |
49 |
马球 |
50 |
美式壁球 |
51 |
攀岩 |
52 |
赛艇 |
53 |
划船练习 |
54 |
橄榄球 |
55 |
正在运行 |
8 |
慢跑 |
56 |
在沙滩上奔跑 |
57 |
跑步(跑步机) |
58 |
航海 |
59 |
水肺潜水 |
60 |
滑板 |
61 |
滑冰 |
62 |
北欧式轮滑 |
63 |
室内滑冰 |
105 |
直排轮滑 |
64 |
滑雪 |
65 |
山岳滑雪 |
66 |
越野滑雪 |
67 |
速降滑雪 |
68 |
风筝滑雪 |
69 |
滚轮滑雪 |
70 |
乘雪橇 |
71 |
单板滑雪 |
73 |
雪地车 |
74 |
雪地健行 |
75 |
垒球 |
120 |
英式壁球 |
76 |
爬楼梯 |
77 |
登山机 |
78 |
立式单桨冲浪 |
79 |
静止(没有移动) |
3 |
力量训练 |
80 |
冲浪 |
81 |
游泳 |
82 |
游泳(开放水域) |
84 |
游泳(游泳池) |
83 |
乒乓球 |
85 |
团体运动 |
86 |
网球 |
87 |
倾斜(设备突然发生重力变化) |
5 |
踏步机(步行或跑步) |
88 |
未知(无法检测活动) |
4 |
排球 |
89 |
排球(沙滩) |
90 |
排球(室内) |
91 |
水上滑板 |
92 |
步行 |
7 |
步行(健身) |
93 |
北欧式健走 |
94 |
步行(跑步机) |
95 |
步行(推车) |
116 |
水球 |
96 |
举重 |
97 |
轮椅运动 |
98 |
帆板 |
99 |
瑜伽 |
100 |
尊巴 |
101 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-31。
[null,null,["最后更新时间 (UTC):2025-08-31。"],[[["\u003cp\u003eGoogle Fit provides integer constant values for various activity types to maintain consistency across applications.\u003c/p\u003e\n"],["\u003cp\u003eThese values are used within the \u003ccode\u003eactivity\u003c/code\u003e field when inserting data points using \u003ccode\u003ecom.google.activity.sample\u003c/code\u003e, \u003ccode\u003ecom.google.activity.segment\u003c/code\u003e, or \u003ccode\u003ecom.google.activity.summary\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eA comprehensive table lists each activity type alongside its corresponding integer value, ranging from common activities like walking and running to specialized ones like kitesurfing and snowboarding.\u003c/p\u003e\n"],["\u003cp\u003eThese constants ensure that different apps interpret and utilize activity data uniformly within the Google Fit ecosystem.\u003c/p\u003e\n"]]],[],null,["# Activity Types\n\nGoogle Fit defines integer constant values for a set of activity types. Use these values for\nconsistency across apps when you insert data points of these types:\n\n- `com.google.activity.sample`\n- `com.google.activity.segment`\n- `com.google.activity.summary`\n\nThese constants define the activity type in the `activity` field of the data points.\n\nActivity type values\n--------------------\n\nThe following tables list the constant values for each activity type. \n\n| Activity Type | Integer Value |\n|----------------------------------------|---------------|\n| Aerobics | 9 |\n| Archery | 119 |\n| Badminton | 10 |\n| Baseball | 11 |\n| Basketball | 12 |\n| Biathlon | 13 |\n| Biking | 1 |\n| Handbiking | 14 |\n| Mountain biking | 15 |\n| Road biking | 16 |\n| Spinning | 17 |\n| Stationary biking | 18 |\n| Utility biking | 19 |\n| Boxing | 20 |\n| Calisthenics | 21 |\n| Circuit training | 22 |\n| Cricket | 23 |\n| Crossfit | 113 |\n| Curling | 106 |\n| Dancing | 24 |\n| Diving | 102 |\n| Elevator | 117 |\n| Elliptical | 25 |\n| Ergometer | 103 |\n| Escalator | 118 |\n| Fencing | 26 |\n| Football (American) | 27 |\n| Football (Australian) | 28 |\n| Football (Soccer) | 29 |\n| Frisbee | 30 |\n| Gardening | 31 |\n| Golf | 32 |\n| Guided Breathing | 122 |\n| Gymnastics | 33 |\n| Handball | 34 |\n| HIIT | 114 |\n| Hiking | 35 |\n| Hockey | 36 |\n| Horseback riding | 37 |\n| Housework | 38 |\n| Ice skating | 104 |\n| In vehicle | 0 |\n| Interval Training | 115 |\n| Jumping rope | 39 |\n| Kayaking | 40 |\n| Kettlebell training | 41 |\n| Kickboxing | 42 |\n| Kitesurfing | 43 |\n| Martial arts | 44 |\n| Meditation | 45 |\n| Mixed martial arts | 46 |\n| Other (unclassified fitness activity) | 108 |\n| P90X exercises | 47 |\n| Paragliding | 48 |\n| Pilates | 49 |\n| Polo | 50 |\n| Racquetball | 51 |\n| Rock climbing | 52 |\n| Rowing | 53 |\n| Rowing machine | 54 |\n| Rugby | 55 |\n| Running | 8 |\n| Jogging | 56 |\n| Running on sand | 57 |\n| Running (treadmill) | 58 |\n| Sailing | 59 |\n| Scuba diving | 60 |\n| Skateboarding | 61 |\n| Skating | 62 |\n| Cross skating | 63 |\n| Indoor skating | 105 |\n| Inline skating (rollerblading) | 64 |\n| Skiing | 65 |\n| Back-country skiing | 66 |\n| Cross-country skiing | 67 |\n| Downhill skiing | 68 |\n| Kite skiing | 69 |\n| Roller skiing | 70 |\n| Sledding | 71 |\n| Snowboarding | 73 |\n| Snowmobile | 74 |\n| Snowshoeing | 75 |\n| Softball | 120 |\n| Squash | 76 |\n| Stair climbing | 77 |\n| Stair-climbing machine | 78 |\n| Stand-up paddleboarding | 79 |\n| Still (not moving) | 3 |\n| Strength training | 80 |\n| Surfing | 81 |\n| Swimming | 82 |\n| Swimming (open water) | 84 |\n| Swimming (swimming pool) | 83 |\n| Table tennis (ping pong) | 85 |\n| Team sports | 86 |\n| Tennis | 87 |\n| Tilting (sudden device gravity change) | 5 |\n| Treadmill (walking or running) | 88 |\n| Unknown (unable to detect activity) | 4 |\n| Volleyball | 89 |\n| Volleyball (beach) | 90 |\n| Volleyball (indoor) | 91 |\n| Wakeboarding | 92 |\n| Walking | 7 |\n| Walking (fitness) | 93 |\n| Nording walking | 94 |\n| Walking (treadmill) | 95 |\n| Walking (stroller) | 116 |\n| Waterpolo | 96 |\n| Weightlifting | 97 |\n| Wheelchair | 98 |\n| Windsurfing | 99 |\n| Yoga | 100 |\n| Zumba | 101 |"]]