A Simply Debug for: Your content must have a ListView whose id attribute is ‘android.R.id.list’

If you’ve encounter this error: Your content must have a ListView whose id attribute is ‘android.R.id.list’, which means the main activity has extends ListActivity as default, the ListActivity demand a ListView becasue its look for the ID of it once application get started, error occurs this time since ID lost. To correct this issue, simply add the code snippets as following:

 

</catmee> 文章全部原创、谢绝转载,作者「BianLei」,如果喜欢欢迎分享链接,相关内容参见本站版权声明
如果您觉得本站的存在对您多少有所帮助,可以用手机支付宝扫一扫以下二维码支付任意金额作为支持:支付宝。你的大名会出现在这个页面
本站相关:QQ空间 | Facebook
Tagged , . Bookmark the permalink.

Comment Anonymously? No Problem! | 可以匿名评论了我会说?

Fill up Email address to subscribe reply and display your avatar from Gravatar (If any)
填写邮箱即可显示您在Gravatar的头像