I have experienced the same error for my custom adapter. The problem is that when you scroll down it tries to construct the view to be shown on the list. In my case I was assigning null values for one of the spinner which is part of my list view item.
Check if there are any null values in your *game.getTeamNames()* method's result. Thanks, Shashidhar On Fri, Aug 20, 2010 at 11:21 PM, Sebastian Muehr < sebastian.mu...@googlemail.com> wrote: > On 20 Aug., 19:17, TreKing <treking...@gmail.com> wrote: > > You probably need to provide more information, like what you adapter > looks > > like, how you've implemented getView(), and what, exactly, you're doing > when > > you get this error. > > This is all I implemented: > > setContentView(R.layout.new_career); > ListView lv = (ListView) findViewById(R.id.listview_newCareer); > lv.setTextFilterEnabled(true); > lv.setAdapter(new ArrayAdapter<String>(getApplicationContext(), > R.layout.item_team, game.getTeamNames())); > > new_career.xml: > <?xml version="1.0" encoding="utf-8"?> > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ > android" > android:orientation="vertical" > android:layout_width="fill_parent" > android:layout_height="fill_parent"> > > <ListView > android:id="@+id/listview_newCareer" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > /> > > </LinearLayout> > > item_team.xml: > <?xml version="1.0" encoding="utf-8"?> > <TextView xmlns:android="http://schemas.android.com/apk/res/android" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > /> > > All I do when getting this error is scrolling through the list. > At about the half of the list I get the error. > In the upper half I can scroll normally without any problems. > > -- > 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<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- 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