Android: Your content must have a ListView whose id attribute is android.R.id.list Android: Your content must have a ListView whose id attribute is android.R.id.list android android

Android: Your content must have a ListView whose id attribute is android.R.id.list


If you have more than one ListView in your layout you should not extend ListActivity but rather extend Activity and handle the ListViews yourself like;

ListView list1 = (ListView) findViewById(R.id.myList1);list1.setAdapter(...);ListView list2 = (ListView) findViewById(R.id.myList2);list2.setAdapter(...);

ListActivity is a shorthand helper class that makes life easier when you are working with only one ListView in your layout.


if you use getListView(); make sure that the target list\s id is "list".