Complete

CIQQA-222

Cannot control Activity Timer in Simulator 3.2.4 & newer

Data field activity timer controls are not working properly for me after SDK 3.2.3

After Start Activity Pause Activity is not greyed out but doesn't respond, Stop Activity is available.

After Stop Activity Pause Activity is still not greyed out (and does nothing) Discard & Save Activity are greyed out.

After Stop Activity Start Activity is not showing - still shows Stop Activity - the activity restarts if Stop is chosen.

  • Thanks for testing this. Still no joy for me.

    I tried to repeat your steps as far as possible.

    1. FieldTimerEvents is running, with simulated FIT data.
    2. Click Data Fields > Timer. The only option available is Start Activity, as expected.
      1. Click Start Activity.
      2. The data field text changes from red to green indicating that the timer has started.
      3. The console displays onTimerStart has executed.
    3. Click Data Fields > Timer.
      1. Only Pause Activity, Stop Activity and Lap Activity appear to be available. Workout Step and Next Multisport are greyed out.
      2. Click Pause Activity.
      3. The data field test does not change from green to orange.
      4. The console displays nothing.
    4. Click Data Fields > Timer.
      1. Pause Activity, Stop Activity, Lap Activity appear to be available, as before.
      2. Click Stop Activity.
      3. The data field test changes from green to red to indicate the timer has been stopped.
      4. The console displays onTimerStop has executed.
    5. Click Data Fields > Timer.
      1. Pause Activity, Stop Activity, Lap Activity appear to be available, as before, nothing else.
      2. Click Stop Activity.
      3. The data field text changes from red to green indicating that the timer has started.
      4. The console displays onTimerStart has executed.
    6. Click Data Fields > Timer.
      1. Pause Activity, Stop Activity, Lap Activity appear to be available, as previously.

    If I run the test with SDK 3.2.3 I see more or less what you described - except that your list of steps can't be quite correct. At 8c you say the field changes from green to red, then at 9c you say the same - but it was already red from step 8c. At 9a you say Stop Activity is available - it isn't, the activity has just stopped - Start Activity is there instead.

    Workout Step, and Next Multisport were never available.

  • Thanks for getting back to me. I'm using Eclipse 2020-09 with Java openjdk-15.0.1 on Windows 10.

  • Here are the steps I used to check things are working as expected with the 3.2.5 SDK on windows...

    1. Load the FieldTimerEvents app into eclipse/vscode
    2. Add System.println() calls to each of the onTimer{Start,Stop,Pause,Resume,Reset} functions so you can see what the simulator is doing.
    3. Build and run FieldTimerEvents
    4. Click Simulation > FIT Data > Simulate Data to enable data simulation
    5. Click Data Fields > Timer. Note that the only option available is Start Activity.
      1. Click Start Activity.
      2. Note that the data field text changes from red to green indicated that the timer has started.
      3. Note that the console displays onTimerStart has executed
    6. Click Data Fields > Timer
      1. Note that Pause Activity, Stop Activity, Lap Activity, Workout Step, and Next Multisport options are available.
      2. Click Pause Activity.
      3. Note that the data field test changes from green to orange to indicate the timer has been paused.
      4. Note that the console displays onTimerPause has executed
    7. Click Data Fields > Timer.
      1. Note that Resume Activity, Stop Activity, and Lap Activity options are available.
      2. Click Resume Activity.
      3. Note that the data field text turns from orange to green to indicate the timer is no longer paused.
      4. Note that the console displays onTimerResume has executed
    8. Click Data Fields > Timer.
      1. Note that Pause Activity, Stop Activity, Lap Activity, Workout Step, and Next Multisport options are available.
      2. Click Stop Activity. In your comments above, you indicate that this does not work.
      3. Note that the data field test changes from green to red to indicate the timer has been stopped.
      4. Note that the console displays onTimerStop has executed
    9. Click Data Fields > Timer.
      1. Note that Discard ActivitySave Activity, Stop Activity, and Lap Activity options are available. 
      2. Click Stop Activity.
      3. Note that the data field test changes from green to red to indicate the timer has been stopped.
      4. Note that the console displays onTimerStop has executed
    10. Click Data Fields > Timer.
      1. Note that Discard ActivitySave Activity, Start Activity, and Lap Activity options are available. 

    At step 6a, I see that Pause Activity is enabled, and at step 6c I've verified that it functions properly after Start Activity. At step 9a I see that Discard Activity and Save Activity options are available and that Pause Activity is not available after pressing Stop Activity. Everything seems to be working just fine.

    If you choose to playback a FIT file (Simulation > FIT Data > Playback File...) the Pause Activity item never becomes available. It is possible that is a bug, but it is not the same as the problems that you point out above.

  • What platform (Mac/Windows/Linux) are you using that you are running into this issue?