In my watch app, I wish to be provide the user with the ability of multiple Activity FIT files (sequentially, not simultaneously), so I'm using the session methods to manage the state of the session.
At the start, I invoke mySession.start(), and on receipt of user request to stop this recording I call; mySession.save().
It's not clear from the docs how I can determine the state of the session, as a subsequent call to mySession.isRecording() causes
Error: System Error Details: a class method was invoked on a Session that is no longer valid
I'm not clear on the state of my session after save. The doco, tantalisingly, states: "Complete the session by storing the FIT file on the file system."
Given that, as the error message states, isRecording() is not a valid method on a Session that has been saved, are there any methods that I may use to determine its state, or do I have to manage my session's state myself?