I'm getting the following exception message: "android.content.res.Resources$NotFoundException: Resource ID #0x7f070004 type #0x12 is not valid"
First, I'm not sure if this error is due to a bad resource ID or a bad resource type. The resource that is associated with this error is: R.id.chooseTableRowTextView, which I verified is equal to #0x7f070004. The id comes from the following xml: <?xml version="1.0" encoding="utf-8"?> <LinearLayout android:id="@+id/chooseTabelRowLinearLayout" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android"> <TextView android:text="None set" android:id="@+id/ chooseTableRowTextView" android:layout_width="wrap_content" android:layout_height="wrap_content"></TextView> </LinearLayout> I'm building a ListView which gets data from an ArrayAdapter. Since the ArrayAdapter data comes from a remote database query that can take a long time, I'm building the ArrayAdapter in an AsyncTask then calling setListAdapter from within AsyncTask.onPostExecute. The ArrayAdapter is built like this: tableListAdapter = new ArrayAdapter<String>(this,R.id.chooseTableRowTextView,tableNames); Where tableNames is the actual array of strings returned from the remote database. The exception comes sometime after I've done all the setup when the system is trying to draw the ListView. I'm at a loss how to debug from here. Any suggestions? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en