title: How to pass countdown timer value to another activity
body: <p>I'm trying to make an android apps which the administractor will set timer count down and the users must be able to see the time count down...I can able to set timer but i dont know how to pass it to another activity...please help here my code</p>
  
  <pre><code>public class Timer extends Activity  {
      public TextView mTextField;
  
      public String formatTime(long millis) { 
          String output = "00:00"; 
          long seconds = millis / 1000; 
          long minutes = seconds / 60; 
  
          seconds = seconds % 60; 
          minutes = minutes % 60; 
  
          String secondsD = String.valueOf(seconds); 
          String minutesD = String.valueOf(minutes); 
  
          if (seconds &lt; 10) 
            secondsD = "0" + seconds; 
          if (minutes &lt; 10) 
            minutesD = "0" + minutes; 
  
          output = minutesD + " : " + secondsD; 
          return output; 
        } 
      public CountDownTimer Counter1;
  
       @Override 
       public void onCreate(Bundle savedInstanceState) { 
           super.onCreate(savedInstanceState); 
           setContentView(R.layout.main); 
  
  //Declare Start/Stop button 
  Button btnstart = (Button)findViewById(R.id.button01); 
  Button btnstop = (Button)findViewById(R.id.button02); 
  Button btnpass = (Button)findViewById(R.id.button03);
  
  //Declare Text fields to show time left 
  final TextView mCounter1TextField=(TextView)findViewById(R.id.textView01); 
  final TextView mCounter2TextField = (TextView)findViewById(R.id.textView02); 
  final TextView mCounter3TextField=(TextView)findViewById(R.id.textView03); 
  
  
  
  //Counter 1 
   Counter1 = new CountDownTimer(120000 , 1000) { 
  public void onTick(long millisUntilFinished) { 
      mCounter1TextField.setText("Seconds left: " + formatTime(millisUntilFinished)); 
  } 
  
  public void onFinish() { 
      mCounter1TextField.setText("Finished!"); 
     // Counter1.start();
  } 
  }; 
  </code></pre>
  
  <p>And the activity which I need to Receive timer</p>
  
  <pre><code>public class f extends Activity {
       public TextView tt;
  
        public void onCreate(Bundle savedInstanceState) {
              super.onCreate(savedInstanceState);
              setContentView(R.layout.dfsdfsd);
  
               Timer objtime = new Timer();
  
  
            TextView productTitleTextView = (TextView) findViewById(R.id.textViewtimer);
  
            productTitleTextView.setText("Left Time is : " + objtime.Counter1);
  
  
  }
  
  
  }
  </code></pre>