I am having a problem repeating countdown timer multiple times,in my case 12 times. I have made two countdown timers,one for roundtime and one for pause and works great.Problem is when the pause is finihed I want that roundtime countdown starts again automaticly until 12 rounds with pause are finished.
I use for loop.Is there any better way? 

Here is code: when user clicks the button countdown starts

```
    button.setOnClickListener(new View.OnClickListener() {
        public void onClick(View v) {
            long roundtime= Long.parseLong(String.valueOf(msg1))*1000;//user has picked roundtime
            Counting timer = new Counting(roundtime, 100);//class Counting extends CountdownTimer
            for(int i=0;i<12;i++){
                timer.start(); // It goes just ones!
            }

        }

```

And countdown timer:

```
         class Counting extends CountDownTimer {

             public Counting(long roundtime, long countDownInterval) {
                 super(roundtime, countDownInterval);
             }
             @Override
             public void onTick(long millisUntilFinished) {
                 textView.setText("" + String.format("%02d:%02d",
                         TimeUnit.MILLISECONDS.toMinutes(millisUntilFinished) - TimeUnit.HOURS.toMinutes(
                                 TimeUnit.MILLISECONDS.toHours(millisUntilFinished)),
                         TimeUnit.MILLISECONDS.toSeconds(millisUntilFinished) - TimeUnit.MINUTES.toSeconds(
                                 TimeUnit.MILLISECONDS.toMinutes(millisUntilFinished))));
             }
             @Override
             public void onFinish() {  // When roundtime is finished,start pause time!
                 int seconds = msg1 % 60;
                 int minutes = (msg1 / 60) % 60;
                 textView.setText(String.format("%02d : %02d", minutes, seconds));
                 long pause= Long.parseLong(String.valueOf(msg2))*1000; //user has picked pause time
                 Counting2 timer2 = new Counting2(pause, 100);
                 timer2.start();
             }
         }
        class Counting2 extends CountDownTimer {

            public Counting2(long pause, long countDownInterval) {
                super(pause, countDownInterval);
            }

            @Override
            public void onTick(long millisUntilFinished) {
                textView2.setText("" + String.format("%02d:%02d",
                        TimeUnit.MILLISECONDS.toMinutes(millisUntilFinished) - TimeUnit.HOURS.toMinutes(
                                TimeUnit.MILLISECONDS.toHours(millisUntilFinished)),
                        TimeUnit.MILLISECONDS.toSeconds(millisUntilFinished) - TimeUnit.MINUTES.toSeconds(
                                TimeUnit.MILLISECONDS.toMinutes(millisUntilFinished))));
            }

            @Override
            public void onFinish() {
                int seconds = msg2 % 60;
                int minutes = (msg2 / 60) % 60;
                textView2.setText(String.format("%02d : %02d", minutes, seconds));
            }
        }

    });
}

```