I have two activities, both of which use a listview. I called one “android:list”, but called the second one “@+id/myList”. Now, my application crashes on startup with a “must have android:list” error message. How does one get around this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think your activity must be extended from
ListActivity, so you should create alistviewwith the tagandroid:name="android:id/list"in the layout xml. Hopes useful to you!