Activity.Info after session

Hi,

I've noticed on physical devices the ActivityInfo object is reset after you save or discard ActivityRecording in a App. This sounds logical, but means you can't access the Activity information after you've completed the session.

If there a way around this, or do you need to 'copy' the information before you complete the recording.

Thanks
Chris
  • Some things are actually available afterward (at least for a period of time), and some may update even after the session.

    An example of what's saved for a bit is currentLocation - that's a trick used by watch faces that need the location for sunrise/sunset, etc.

    On some watches (baro altimeter needed for sure), you can get the elevation and the various pressure values, and they'll keep updating. HR is also like this if an oHRM is used.

    For activity specific stuff, (distance, etc), I believe you'll have to save that off, at the time the session is saved.
  • Former Member
    Former Member over 7 years ago
    You would need to capture the session information prior to saving or discarding the session.
  • Thanks both.

    As a side - would be a nice improvement/fix to the simulator to replicate this behaviour, to be more consistent.

    Cheers
    Chris
  • Former Member
    Former Member over 7 years ago
    Which data values persist after a session is finished in the simulator that do not on device?

    Are you working with an application or a data field?