I have an existing application and I want to get the number of steps on a track.
So doing a TAP on the screen when completing a lap but I want to find out how to get the number of steps on the just completed lap. The tap completion will always be at the same start / end point in the track and the user will tap on the screen to indicate that a lap is completed.
So really .. the number of steps since the last screen tap ?
I tried to store the steps in a variable (corresponding to the number of laps completed) ie Lap1, Lap2, Lap3 and then subtract that from the current steps completed. It did not work.
So for example ..
At the end of Lap6 . it was 2434 steps. At the end of Lap7 it was 2817. That would give a desired result of 383 steps on that lap (which I would like to display on the screen then tapped).
I can see the number of laps being maybe up to 25 or so but that is not fixed.
I do write the data to the device for later retrieval .. but I would like to be able to display the STEPS per LAP (the last completed lap) on the device as the tap is completed.
Right now .. I just store the current steps when the screen is tapped but would really like to get the Steps per Lap.
Wondering if the best place to do this is on the tap or the OnUpdate ? and what would be a good way to do it.
Thanks
Kevin