Languages

Menu
Sites
Language
[wearable] Activity monitor problem since Tizen 3.0

Hi,

my app (ElevationTracker) is not working since Tizen 3.0 update. Problem is, that tizen.humanactivitymonitor.readRecorderData is not giving me array of value anymore. It only gives one entry in array, the last one. I didn't find any difference in API reference.

This piece of code is returning array of hundrets of items (one per minute in selected interval) in Tizen 2.3, but only last value in Tizen 3.0. I just can't find any clue why is this happening. Samsung destroyed my app and didn't say anything about changes in this functions :(

var type = 'PRESSURE';
var query = {  
startTime: startTime / 1000,
anchorTime: anchorTime / 1000,
interval: 1 // One minute
};
tizen.humanactivitymonitor.readRecorderData(type, query, onread, onerror);
function onread(data) {
console.log(data.lenght); //Since Tizen 3.0, this has always only one entry. It used to be array in the Tizen 2.3.
}

Do you have any clue how to work with historical pressure values in Tizen 3.0 ?

Thank you!

Edited by: Konvalinka on 24 Nov, 2017

Responses

2 Replies
Iqbal Hossain

I am also getting same thing in Tizen 3.0 ( Gear Sport)... But can't run HAM api on Gear S2. 
As far i know HAM works for 2.3.1 or Higher...... so how can you run it on 2.3 ? 

Iqbal Hossain

hi  Konvalinka, I was facing some problems in FileSystem API after upgrading to Tizen 3.0. But after making a Reset the problems are gone! You may try this.