Skip to content Skip to sidebar Skip to footer

Android Chronometer Starts And Stops But Carries On Counting When Stopped

I've created an app that has a toggle button to start and stop a Chronometer, like a stop watch. When you first press the toggle button (executes .start()), the chronometer will st

Solution 1:

Add this line before "chronStopwatch.start();"

chronStopwatch.setBase(SystemClock.elapsedRealtime());

Post a Comment for "Android Chronometer Starts And Stops But Carries On Counting When Stopped"