小编Bar*_*zky的帖子

如何使用活动识别来检测步行/跑步与on_foot

在Google Play服务活动识别中有

DetectedActivity.RUNNING,
DetectedActivity.WALKING,
DetectedActivity.ON_FOOT
Run Code Online (Sandbox Code Playgroud)

当我得到行走或跑步的活动更新时,我得到ON_FOOT

我该如何区分?

我知道它说RUNNING和WALKING:"这是ON_FOOT的子活动"

谢谢你的帮助.

android google-play-services activity-recognition

6
推荐指数
2
解决办法
6715
查看次数