I'm working with android sensors, specifically TYPE_STEP_COUNTER. The value returned by TYPE_STEP_COUNTER is constantly increasing and there is not way of resetting it (as far as I know). What I need to do is get the number of steps taken from the point the user presses a button.
I would do:
int steps = overallTotal - totalWhenButtonPressed
How can I get the totalWhenButtonPressed value?
I can't do totalWhenButtonPress = event.values[0]
because the value keeps changing.