2013년 11월 14일 목요일

[안드로이드 앱 개발] Your content must have a ListView whose id attribute is 'android.R.id.list'

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.philtelbook/com.example.philtelbook.DataListActivity}: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list'


ListViewActivity를 사용하려면 반드시 ListView의 아이디를 list로 지정하라는 이야기입니다.

xml에 다음과 같이 지정해주세요. 반드시......

android:id="@android:id/list"

댓글 없음:

댓글 쓰기