Simulated data doesn't reset?

Former Member
Former Member
Working with simulator only by now and it seems like simulated data doesn't reset from session to session.
I create session via ActivityRecording.createSession(...) then stop() and save() it after some time. When I create a new one, I'm receiving data from previous session as well via Activity.getActivityInfo(), e.g. elapsedDistance or elapsedTime. Is it supposed to be this way or just a limitation of simulator?

Thanks!
  • Former Member
    Former Member over 10 years ago
    This is a simulator limitation. The data is tracked based on when the simulation is started, and is not affected by the session start and stop. If you want a new simulated session, I recommend stopping and restarting the data simulation.
  • Former Member
    Former Member over 10 years ago
    Got my device finally. Yes, on the device everything works as expected. Thanks!