Can anyone share with me sample code for putting steps on watch face. I am new to coding, and am struggling with getting the steps to display.
Or can you point me to a better source.
Thank you
Tom
Can anyone share with me sample code for putting steps on watch face. I am new to coding, and am struggling with getting the steps to display.
Or can you point me to a better source.
Thank you
Tom
So can you share your sample code?
See the API Guide under activityMonitor. How you display it depends on your app.
// get ActivityMonitor info
var info = ActivityMonitor.getInfo();
var steps = info.steps;
var calories = info.calories;
System.println("You have taken: " + steps +
" steps and burned: " + calories + " calories!");Thank you !!! That was fast much appreciated!!!