title: "The method setListAdapter(ArrayAdapter) is undefined for the type create"
body: <p>I  am completely new  to  java &amp; android, so  I tried to find useful samples from android &amp; databases.  I found this blog with a project:</p>
  
  <p><a href="http://saigeethamn.blogspot.com/2009/10/android-developer-tutorial-part-12.html" rel="nofollow noreferrer">http://saigeethamn.blogspot.com/2009/10/android-developer-tutorial-part-12.html</a></p>
  
  <p>I ran the project and it works fine,  but I  was trying to create a new project to copy &amp; paste the code in it  and  this is not working  :( </p>
  
  <p>I had a problem on this line: </p>
  
  <pre><code>this.setListAdapter(new ArrayAdapter&lt;String&gt;(this, android.R.layout.simple_list_item_1,results));
  </code></pre>
  
  <p>This is the error I get:</p>
  
  <blockquote>
    <p>The method setListAdapter(ArrayAdapter) is undefined for the type create</p>
  </blockquote>
  
  <p>It looks like a method in C#, but I can find it in the original  project.</p>
  
  <p>Where did I make a mistake?</p>