That's because you are using a ListActivity. If you don't want to use a ListView, use an Activity instead.
On Wed, Jan 7, 2009 at 11:39 AM, Faber Fedor <[email protected]> wrote: > I've been fighting this for freaking hours: > > I can open my ContentProvider and assign data to variable. I know want to > list all the records. I can't get anything to display. I've been trying to > simply things and I've run into a road block: for some reason, I keep > getting the error "Your content must have a ListView whose id attribute is > 'android.R.id.list'". > > The problem occurs when I modify this layout file: > > <LinearLayout > xmlns:android="http://schemas.android.com/apk/res/android" > android:orientation="vertical" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > > <TextView > android:id="@+id/selection" > android:layout_width="fill_parent" > android:layout_height="wrap_content"/> > <ListView > android:id="@android:id/list" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > android:drawSelectorOnTop="false" > /> > </LinearLayout> > > If I take out the ListView, I get the error, but I can't find out where in > my code I'm referecing that. > > > > > > -- Romain Guy Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" 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-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

