I would like that when a button was clicked, 10 seconds would be added to my timer, but I could not find a way to add value to CountDownTimer, here is my code.
private void contagemRegressiva(){
new CountDownTimer(31000, 1000) {
public void onTick(long millisUntilFinished) {
tv_tempo.setText("Tempo restante: " + millisUntilFinished / 1000);
}
public void onFinish() {
tv_tempo.setText("Tempo esgotado");
}
}.start();