Using MatrixCursor and SimpleCursorAdapter in a ListView with text and images

て烟熏妆下的殇ゞ 提交于 2019-11-28 23:07:16

Let's chalk this one up to inexperience with debugging Java using Eclipse.

Running the application in the debugger, I crashed with a RuntimeException. Clicking the very top element in the call stack gave me the list of Variables, at which I saw my Exception e.

The specific error was an InvalidArgument because my MatrixCursor did not have an _id column. Adding a column labeled _id fixed the problem and now everything works.

Thanks for making me look at the debugger again! Be comfortable with and knowledgeable about your tools!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!