How to start App Activity in Simulator?

Former Member
Former Member

Something missing here in my understanding, I have a simple App created in Eclipse, in the View class (extending WatchUi.View) I have an initialize() method that starts session recording. Currently my App displays Heart Rate, and I'm trying to add cadence. 

The recording works OK, when I sideload to my watch the FIT file is being created, and looks OK. Cadence is being recorded in the FIT file, but I am not able to show it in the UI because it's coming back as null from Activity.Info.currentCadence

Now I'm wondering whether my Activity has actually started, if I check the value of Activity.Info.startTime in the onUpdate() method it always returns null, even though session.isRecording() returns "true" .

So I guess I don't understand how an activity is started.

In the Simulator I can run Simulation / Fit Data / Simulate Data and Simulation / Fit Data / Playback File.... but always Activity.Info.startTime returns null.....I'm using Vivoactive 3 in the simulator (same as my actual watch) and have also tried clicking the button, to see if that might change the value of  Activity.Info.startTime, but to no effect.

Maybe I'm barking up the wrong tree, but why does  Activity.Info.startTime always return null?

Thanks

David