I'm working on an Android application where I would like the CountdownTimer to skip 5 seconds when the reset button is pressed. For example, if the reset button is pressed when count down timer is at t = 15, the timer will skip the next five seconds and hence the timer will now display t = 10. Here's what I tried but it didn't work:

Button Code:

```
buttonReset = (Button) findViewById(R.id.ButtonReset);

    buttonReset.setOnClickListener(
            new OnClickListener() {
                @Override
                public void onClick(View v) {
                    TextView output = (TextView) findViewById(R.id.Display);
                    r = 1;
                    output.setText("");
                    resetStatus = true;
                }
            }
    );

```

**Edit:** I have updated the timer code. Now, I cancel the old timer and start a new one.  

Count down timer code:

```
    public void start()
{
    new CountDownTimer(59*1000, 1000)
    {
        TextView timer = (TextView) findViewById(R.id.Timer);
        public void onTick(long millisUntilFinished)
        {
            int TimeSeconds = (int) millisUntilFinished/1000;

            if (resetStatus)
            {
                cancel();

                TimeSeconds = TimeSeconds - 5;
                final int finalTimeSeconds = TimeSeconds;

                new CountDownTimer(finalTimeSeconds*1000, 1000)
                {
                    @Override
                    public void onTick(long millisUntilFinished) {
                        if (finalTimeSeconds >= 10)
                        {
                           //displays time
                            timer.setText("00:" + finalTimeSeconds);
                        }

                        else
                        {
                            //displays time
                            timer.setText("00:0" + finalTimeSeconds);
                        }
                        resetStatus = false;
                    }

                    @Override
                    public void onFinish() {
                        gameOverDialogue();

                    }
                }.start();
            }

            else
            {
                if (TimeSeconds >= 10)
                {
                    //displays time
                    timer.setText("00:" + TimeSeconds);
                }

                else
                {
                    //displays time
                    timer.setText("00:0" + TimeSeconds);
                }

            }
        }
        public void onFinish()
        {
            gameOverDialogue();
        }
    }.start();
}

```

When I press the reset button now, the timer skips 5 seconds after which the display freezes. However, the timer keeps ticking and reaches 0. I think it's because in the second count down timer the `final` variable `finalTimeSeconds`is used instead of `TimeSeconds`. Any suggestions?

Thanks in advance