title: Android repeat CountDownTimer until end foreach loop
body: <p>I want to repeat a <code>CountDownTimer</code> within a <code>for</code> loop until its execution complete. But <code>CountDownTimer</code> executes first index of <code>for</code> loop and it can not repeat again for next index.</p>
  
  <pre><code>for (final Question questionData : questionSet) {
              setUI(questionData);
              startTimer();
  }
  private void setUI(Question questionData) {
      question.setText(questionData.getQuestion());
      ch1.setText(questionData.getC1());
      ch2.setText(questionData.getC2());
      ch3.setText(questionData.getC3());
  
  }
  
  private void startTimer(){
      int interval = 10000;
      countDownTimer = new CountDownTimer(interval, 1000) {
  
          public void onTick(long millisUntilFinished) {
              time.setText("seconds remaining: "
                      + millisUntilFinished / 1000);
          }
  
          public void onFinish() {
              time.setText("done!");
              countDownTimer.cancel();
          }
      }.start();
  
  }
  </code></pre>
  
  <p>Here <code>questionSet</code> has two index.
  Thanks in advance.</p>