title: Android ListView understanding
body: <p>I have a question about the ListView and how to use it. My Prolem is that my listView is only a part of the view and I am not sure how to do this.</p>
  
  <pre><code>public class MainActivity extends Activity {
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
  
      ListView myListView = (ListView) findViewById(R.id.ListView01);
      String[] strings = new String[]{"Test1","Test2"};
      ArrayAdapter&lt;String&gt; myArrayAdapter= new ArrayAdapter&lt;String&gt;(this, R.id.ListView01,strings);
      myListView.setAdapter(myArrayAdapter);
  </code></pre>
  
  <p>I think the problem is the "this" in myArrayAdapter!?</p>