活動類型
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Google Fit 為一組活動類型定義整數常數值。插入下列類型的資料點時,請使用這些值來確保各個應用程式的資料一致:
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 |
CrossFit |
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 |
越野滑輪 |
700 |
滑雪橇 |
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 |
Zumba舞 |
101 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-31 (世界標準時間)。
[null,null,["上次更新時間: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 |"]]