title: The Intent constructors parameters
body: <p>The Intent class had 6 constructors</p>
  
  <blockquote>
    <p><strong>Intent()</strong></p>
    
    <p>Create an empty intent.</p>
  </blockquote>
  
  <hr>
  
  <blockquote>
    <p><strong>Intent(Intent o)</strong></p>
    
    <p>Copy constructor.</p>
  </blockquote>
  
  <hr>
  
  <blockquote>
    <p><strong>Intent(String action)</strong></p>
    
    <p>Create an intent with a given action.</p>
  </blockquote>
  
  <hr>
  
  <blockquote>
    <p><strong>Intent(String action, Uri uri)</strong></p>
    
    <p>Create an intent with a given action and for a given data url.</p>
  </blockquote>
  
  <hr>
  
  <blockquote>
    <p><strong>Intent(Context packageContext, Class cls)</strong></p>
    
    <p>Create an intent for a specific component.</p>
  </blockquote>
  
  <hr>
  
  <blockquote>
    <p><strong>Intent(String action, Uri uri, Context packageContext, Class cls)</strong></p>
    
    <p>Create an intent for a specific component with a specified action and
    data.</p>
  </blockquote>
  
  <p>I'm almost new in android programming and mostly using the fifth one when i need to start another <code>Activity</code> or <code>Fragment</code>:</p>
  
  <pre><code>Intent(Context packageContext, Class&lt;?&gt; cls)
  </code></pre>
  
  <p>When i want to start an <code>Activity</code> from a <code>Fragment</code> i do this:</p>
  
  <pre><code>Intent i = new Intent(getActivity(), DestinationActivity.class);
  </code></pre>
  
  <p>as far as i know, <code>getActivity()</code> will return an <code>Activity</code></p>
  
  <p>But the constructor expect a <code>Context</code>, how is this possible???</p>
  
  <p>is it possible because of that the <code>Activity</code> that had returned by <code>getActivity()</code> implicitly invoke <code>getApplicationContext()</code>???</p>