RuntimeException: Your content must have a ListView whose id attribute is ‘android.R.id.list’

<ListView android:id="@android:id/list"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"/>

This will solve the error if you still want to use a ListActivity.

Leave a Comment