title: 'Intent cannot be resolved to a type' error in eclipse
body: <p>I am programming the first <a href="http://developer.android.com/training/basics/firstapp/starting-activity.html" rel="nofollow" title="android tutorial">android tutorial</a> in eclipse, and when compiling this code:</p>
  
  <pre><code>Intent intent = getIntent();
  </code></pre>
  
  <p>it gives the error</p>
  
  <blockquote>
    <p>Intent cannot be resolved to a type</p>
  </blockquote>
  
  <p>How do I fix it?</p>