PreferenceActivity
is-a ListActivity
, and a ListActivity
requires a layout which has a ListView
with id @android:id/list
. This is also shown in the exception you posted:
Your content must have a ListView whose id attribute is 'android.R.id.list'
Now, it seems that your code doesn't appear to be that of a regular Android preferences activity. Therefore you should change the extends PreferencesActivity
to just extends Activity
.