I made a button that starts a Chronometer and I want to make the Chronometer restart after 15 minutes (to be looping). I am new to coding and I don't know how to manage that .
The code:
btPlay.setOnClickListener(v -> {
chronometer.setBase(SystemClock.elapsedRealtime());
chronometer.start();
});