语言

Menu
Sites
Language
Gear S2 - How to get Health Activity Duration and goal information

Hello,

I have find the documentation for HumanActivity. I know how to get step count and so. But it is possible to get information about activity duration and goals ?

响应

1 回复
Nafisul Islam Kiron

Hello, what do you mean by "goals"? Please clarify.

You can find the duration by tracking "stepStatus", which gives "NOT_MOVING", "WALKING", "RUNNING".

If you get "NOT_MOVING", stop the timer. If you get "WALKING" or "RUNNING" you can resume your timer. In that case you have to keep track of your timer and it's records.

 

Links:

https://developer.tizen.org/development/api-tutorials/web-application/tizen-features/system/human-activity-monitor

https://developer.tizen.org/dev-guide/2.4/org.tizen.web.apireference/html/device_api/wearable/tizen/humanactivitymonitor.html#HumanActivityMonitorManager