title: How to access the timer value once the timer task is cancel and resume it?
body: <p>I have activity A and B. When I pause the timer in activity A, it stops the timer and I want to resume it again when I start resume button in activity B. I have seen tutorials, but I have just found tutorials within the same activity. </p>
  
  <p>Activity A have the Countdown timer and the Pause button:</p>
  
  <pre><code>    // implements CountdownTimer
      final CountDownTimer timer = new CountDownTimer(30000, 1000) {
          TextView timeLeft = (TextView) findViewById(R.id.time_left_value);
  
          public void onTick(long millisUntilFinished) {
              timeLeft.setText("" + millisUntilFinished / 1000);
          }
  
          public void onFinish() {
          //  TODO: set intent to next screen
          Intent i = new Intent(A.this, C.class);
          startActivity(i);
          }
      }.start();
  
  
      // Pause Button
      Button pause_btn = (Button) findViewById(R.id.pause_btn);
      pause_btn.setOnClickListener(new OnClickListener() {
          @Override
          public void onClick(View arg0) {
              //Move to the next view!
              Intent i = new Intent(A.this, B.class);
              startActivity(i);
              timer.cancel();
          }
      });  
  </code></pre>
  
  <p>Activity B have the resume button:</p>
  
  <pre><code>    Button resume_btn = (Button) findViewById(R.id.resume_btn);
      resume_btn.setOnClickListener(new OnClickListener() {
              @Override
              public void onClick(View arg0) {
                  //Move to the next view!
                  finish();
              }
          });  
  </code></pre>