Hi,
I've been developing and testing an App, and wanted to clarify some detail about ActivityRecording and Sensors. My understanding is that sensors like Heart Rate and Cadence/Speed automatically connect and get recorded without and developer effort.
However, for GPS you need to call Position.enableLocationEvents(Position.LOCATION_CONTINUOUS,...) to get the 'sensor' enabled and recorded. Is this correct?
Can I also call (mid-session) Position.enableLocationEvents(Position.LOCATION_DISABLE, ...) to stop recording, if I know they are indoors to save battery?
Also, is it acceptable to call Position.enableLocationEvents(Position.LOCATION_CONTINUOUS, ...) with a null function pointer, as I don't want the callback - just the data recorded?
Thanks
Chris