2
On Android has the view Chronometer
, automatically initializes when you enter the ativity.
To reset the timer from the 0
use the following code:
chronometer.setBase(SystemClock.elapsedRealtime());
chronometer.start();
When I use the stop()
, he stops visually time, but when it is pressed again the start()
It’s like I didn’t stop the clock because it was actually working in the background.
How do I pause the chronometer
and pick up where you left off?
I reviewed only today! I had done something very similar, using the same logic. It worked perfect. Abs;
– viana