title: Your content must have a ListView whose id attribute is 'android.R.id.list'
body: <p>I have created an xml file like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;ListView xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:id="@+id/list" &gt;
  &lt;/ListView&gt;
  </code></pre>
  
  <p>and an activity:</p>
  
  <pre><code>public class ExampleActivity extends ListActivity {
      /** Called when the activity is first created. */
      @Override
      public void onCreate(Bundle savedInstanceState) {   
          super.onCreate(savedInstanceState);
          setContentView(R.layout.mainlist);
      }
  }
  </code></pre>
  
  <p>As you see, I have not done anything else. But I'am getting the error:</p>
  
  <blockquote>
    <p>Your content must have a ListView whose id attribute is 'android.R.id.list'</p>
  </blockquote>
  
  <p>Even though I have the <code>android:id="@+id/list"</code> line in my xml. </p>
  
  <p>What is the problem?</p>