Is a running session needed to access activity info ?

In order to calculate total distances, I access elapsedDistance of ActivityInfo.
In the simulation it works fine even without starting a recording session. But in my Quatix 3, the values for elapsedDistance do not change at all :-(
The only explanation could be that for an activity to deliver data, an active session is mandatory.
Is this correct ?
Thanks
  • You are correct Act.Info only changes if you are recording something on the watch. Are you doing "Simulation>Fit Data>..." in the sim without starting a recording? I can see where that might have it change in the sim, but I've never tried it. But that's not like what happens on a watch in this case.
  • Thanks for that info !

    Currently, the user of my app can start and stop recording through the menu but since I need elapsedDistance all the time, I will have to remove that option and start the recording directly during App.onStart.
  • Actually, using session.stop() and later a session.start() is how you do a pause in a activity recording. Things end when you do a session.save() or session.discard() I know elapsedTime continues to run during the time between when you call stop() and start(), but I've never checked on elapsedDistance. (when I pause, it's because I'm taking a break :) )