I'm creating datafield with 2 FitContributors: first MESG_TYPE_SESSION, second MESG_TYPE_LAP.
I'm calling setData method for first field in onTimerPause() and onTimerStop() methods.
For second field in onTimerLap().
I'm creating fields in initialize() method.
I have problem with resuming activity.
When user choses resume later activity my values resets to 0.
Possible workaround for first field is to use Toyboy::Application:Storage and save value in onTimerPause()/onTimerStop(). Then read it in initialize(). I think this wouldn't work with second field.
How to solve this problem?
Source code is avaiable on github: https://github.com/tymmej/HikeField/blob/master/source/HikeField.mc