title: Countdown Timer problem
body: <p>I am using this Android class to implement a countdown: <a href="http://developer.android.com/reference/android/os/CountDownTimer.html" rel="nofollow">http://developer.android.com/reference/android/os/CountDownTimer.html</a></p>
  
  <p>I have created an own class My Count:</p>
  
  <pre><code>public class MyCount extends CountDownTimer{
  
  public MyCount(long millisInFuture, long countDownInterval) {
  super(millisInFuture, countDownInterval);
  }
  
  @Override
  public void onFinish() {
  tv_test.setText("");
  }
  
  @Override
  public void onTick(long millisUntilFinished) {
  tv_test.setText("d"+ (millisUntilFinished/(3600000*24))+ " h: "+  (millisUntilFinished/3600000)%24  +" m: " +  (millisUntilFinished/60000) % 60 + " sec: "+   (millisUntilFinished/1000) % 60);
  
  }
  
  }
  </code></pre>
  
  <p>in onStart() of my activity I have this code:</p>
  
  <pre><code>MyCount counter = new MyCount(time, 1000);
          counter.start();
  </code></pre>
  
  <p>The problem is now: If I navigate to next activity and come back, the countdowntimer is started again and there run two countdowns.</p>
  
  <p>I can not put it in onCreate() because the time variable can be changed by the user. He changes it on an other activity</p>