title: getSystemService error inside Thread class
body: <pre><code>public class myThread extends Thread
  {
  Context context;
  
  public myThread (Context c)
  {
      this.context = c;
  }
  
  @Override
  public void run()
  {
      super.run();
  
      NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
      notificationManager.cancelAll();
  }
  }
  </code></pre>
  
  <p>I am getting an red x error in eclipse on getSystemService saying `The method getSystemService(String) is undefined for the type myThread'</p>
  
  <p>HELP</p>