title: How to create an infinite loop
body: <p>Ok,I need to create an infinite loop on a countdown. My code is:</p>
  
  <pre><code>public void countdown() {
      if (x != null) {
          x.cancel();
      }
  
      x = new CountDownTimer(20000, 1000) {
          public void onTick(long millisUntilFinished) {
          }
  
          public void onFinish() {
              showNotification();
          }
      };
      x.start();
  }
  </code></pre>
  
  <p>x is just a static countdowntimer variable. The problem is that I tried many methods to make the above code work,I mean when the countdown ends,and it displays that notification,it should start again and so on....but I can't find a way to do it.</p>