Languages

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.

Edited by: Anonymous on 03 May, 2019

Responses

1 Replies
André Reus

hi, 
You may try with 
setAccumulativePedometerListener and  unsetAccumulativePedometerListener.