在 Android 4.4 中,google play 服务引入了“步行”活动识别,但已经有了 on_foot 识别。
- 两者有什么区别?
在 Android 4.4 中,google play 服务引入了“步行”活动识别,但已经有了 on_foot 识别。
根据https://developers.google.com/android/reference/com/google/android/gms/location/DetectedActivity
ON_FOOT:“设备在行走或跑步的用户身上。”
WALKING:“设备在正在行走的用户身上。这是 ON_FOOT 的子活动。”
RUNNING:“设备正在运行的用户身上。这是 ON_FOOT 的子活动。”