title: Timer stop after one minute
body: <p>I made a Timer and I want to stop it when it reaches to 60 seconds(1 min).</p>
  
  <p>here's the code:</p>
  
  <pre><code>        Timer t = new Timer();
      t.scheduleAtFixedRate(new TimerTask() {
          public void run() {
              runOnUiThread(new Runnable() {
                  public void run() {
                      myTextView.setText("timer=" + String.valueOf(TimeCounter));
                      TimeCounter++;
                  }
                 });
              }
      }, 0, 1000);  
      int I=60;
      if (TimeCounter == I) { 
            -------------- stop the timer here ----------------
         }
         }
  </code></pre>
  
  <p>how can I do it?</p>