title: Android timer/timertask causing my app to crash?
body: <p>Just testing out a simple block of code in my mainActivity's onCreate: </p>
  
  <pre><code>Timer timer2 = new Timer(); 
          TimerTask testing = new TimerTask() {
              public void run() { 
                  Toast.makeText(mainActivity.this, "test", Toast.LENGTH_SHORT).show();
  
              }
          };
          timer2.schedule(testing, 1000);
  </code></pre>
  
  <p>I get the "force close" error though. </p>
  
  <p>What gives? </p>