If I get the error "android.content.res.Resources$NotFoundException: Resource ID #0x7f050007 type #0x12 is not valid" can I find some what this resource is if I know its ID?
ListView list = (ListView)findViewById(R.id.messages_list_view); list.setAdapter(new ArrayAdapter<String>(context, R.layout.messages_list, headers)); messages_list.xml
<?xml version="1.0" encoding="utf-8"?> <LinearLayout android:id="@+id/messages_list_layout" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android"> <ListView android:id="@+id/messages_list_view" android:layout_width="wrap_content" android:layout_height="wrap_content" /> </LinearLayout>