title: Android pass parameters to TimerTask extends class
body: <p>in my application i need to pass parameters to TimerTask for use <code>Context</code>. but i can not do it. in this below code <code>GetSMSThread</code> class is <code>subclass</code> and that need to get parameters from main class.</p>
  
  <pre><code>Timer smsThread = new Timer();
  GetSMSThread getSMSThread = new GetSMSThread();
  smsThread.scheduleAtFixedRate(getSMSThread, 0, 100000);
  </code></pre>
  
  <p><code>GetSMSThread</code> subClass:</p>
  
  <pre><code>public class GetSMSThread extends TimerTask {
      @Override
      public void run() {
  
      }
  }
  </code></pre>