title: Pause and resume android countdown timer
body: <p>I'm having android countdown timer which is starting automatically. I need to pause and resume it. I've seen other solutions but they didn't work. My code is:</p>
  
  <pre><code>class Timer extends CountDownTimer
  {
      public Timer(long millisInFuture, long countDownInterval)
      {
          super(millisInFuture, countDownInterval);
          timerTimedOut = false;
      }
  
      @Override
      public void onFinish() {
          if(timerTimedOut){
              doSTH();
          } else {
              doSTHElse();
          }
  
          this.start();
      }
  
      @Override
      public void onTick(long millisUntilFinished)
      {
          timerShow.setText(Long.toString(millisUntilFinished / 1000));
  
      }
      public void stop(){
          timerTimedOut = true;
          this.cancel();
          onFinish();
      }
  }
  </code></pre>
  
  <p>What should I do to pause and resume it?</p>