语言

Menu
Sites
Language
stop("PEDOMETER") does NOT clear previous data

HumanActivityMonitor API says:

"cumulativeTotalStepCount is Cumulative walking and running step count since the last start() method call."

"stop("PEDOMETER") stops the sensor and unregisters a previously registered listener for available human activity data."

1) tizen.humanactivitymonitor.start("PEDOMETER", onchangedCB);

For instance, in a while we get 500 steps.

2) tizen.humanactivitymonitor.stop("PEDOMETER");

3) tizen.humanactivitymonitor.start("PEDOMETER", onchangedCB);

After new start it gives 500+ steps instead of 0+.

It worked well before Tizen 3.0

How to solve the issue? I used stop() to clear steps next day.

编辑者为: Anonymous 03 5月, 2019

响应

1 回复
André Reus

hi, 
You may try with 
setAccumulativePedometerListener and  unsetAccumulativePedometerListener.