i try to read the activity history with:
var acthis = ActivityMonitor.getHistory();
var his0_goal = acthis[0].stepGoal;
var his0_steps = acthis[0].steps;
var his1_goal = acthis[1].stepGoal;
var his1_steps = acthis[1].steps;
If there is a history, everything works fine. But if not i get an
"Array Out Of Bounds Error" - Error.
How can i check if the history array contains "n" objects?
Sorry for this stupid basic question, its quite a long time ago since i wrote some kind of code ;-)
Thanks
Achim