I am struggling with FitContributor, when starting a second FIT file within my ConnectIQ app.
The first one starts and stops fine, using session.start() to start it, and session.stop() then sesssion.save() to end.
However if I try to start a second session it never actually starts. Any ideas what could be causing this?
Code to start log:;
session = Record.createSession({:name=>"AeroSesssion", :sport=>Record.SPORT_CYCLING}); session.start();
Code to stop log:
if( ( session != null ) && session.isRecording() ) { session.stop(); session.save(); session = null; }
After start, stop then start again, my "isLogging" function returns false:
static function isLogging() { if( ( session != null ) && session.isRecording()) { return true; } else { return false; } } }