title: Android usage of Intent
body: <p>In my main Activity's <code>onCreate</code> method, I've started a <code>Intent</code> using the following code:</p>
  
  <pre><code>Intent intent = new Intent(this, NetworkHandler.class);
  startService(intent);
  </code></pre>
  
  <p>I've created another class named NetworkHandler which extends the <code>IntentService</code></p>
  
  <pre><code>public class NetworkHandler extends IntentService {
      public NetworkHandler() {
          super("HTTPRequest");
          // TODO Auto-generated constructor stub
      }
  
      @Override
      protected void onHandleIntent(Intent intent) {
          String url = "http://vlm1.uta.edu/~zhangzhong/questions.json";
          Toast.makeText(intent.getComponent(), "Debug!", Toast.LENGTH_LONG).show();
          DefaultHttpClient client = new DefaultHttpClient();
  </code></pre>
  
  <p>The problem is I'm trying to use the <code>Toast</code> in the <code>NetworkHandler</code> class. I'd like to pass the main activity object to the first parameter of <code>makeText</code> method of <code>Toast</code>. How can I do it?</p>