I am trying to get steps count on Samsung Gear S2 for my Gear App.
And could not find the way how to get step count same as in S Health.
I have read all Tizen documents for Gear. Tried all methods, but nothing.
I have read that I should use stepCountDifferences for it.
I have used all methods, and readstepCountDifferencesin all of them, and every there it only 1 element in the array ( looks like with difference between current and last data)
function onPedometerUpdate(pedometerData) {
var d = pedometerData.stepCountDifferences[0];
barmsg = pedometerData.stepCountDifferences.length +’:’+ d.stepCountDifference +’:’+ d.timestamp; // 1:1:1455707460
}
GearS2 S Health step count
Hello!
function onPedometerUpdate( pedometerData) { stepCountDifferences[0]; stepCountDifferences.length +’:’+ d.stepCountDifference +’:’+ d.timestamp; // 1:1:1455707460
var d = pedometerData.
barmsg = pedometerData.
}
tizen.humanactivitymonitor. setAccumulativePedometerListen er(onPedometerUpdate);
tizen.humanactivitymonitor. start(‘PEDOMETER’, onPedometerUpdate);
tizen.humanactivitymonitor. getHumanActivityData(‘ PEDOMETER’, onPedometerUpdate, null);
Looks like I’m use this attribute stepCountDifferences in wrong way. I very much ask you to tell how to use it in correct way.
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio