I tried changing it to the name of the layout and got an exception saying "java.lang.IllegalStateException: ArrayAdapter requires the resource ID to be a TextView". The layout file I pointed to is this:
<?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> On Sep 7, 2:02 pm, Mark Murphy <[email protected]> wrote: > On Tue, Sep 7, 2010 at 4:57 PM, Bret > Foremanbegin_of_the_skype_highlighting end_of_the_skype_highlighting<[email protected]> > wrote: > > Here's the code where I set the resource: > > > tableListAdapter = new > > ArrayAdapter<String>(this,R.id.chooseTableRowTextView); > > setListAdapter( tableListAdapter ); > > > Note that R.id.chooseTableRowTextView = 0x7f070004 and is a TextView. > > That's wrong. You need to be using an R.layout.somethingoranother there. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > Android Training in London:http://skillsmatter.com/go/os-mobile-server -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

