I am getting this error
IllegalArgumentException: column '_id' does not exist
When using a SimpleCursorAdapter
to retrieve from my database, and the table does indeed have this _id
column. Noticing this a common problem, I have tried to work around it given some of the solutions online but none of them work. This is my cursor query:
SimpleCursorAdapter mAdapter = new SimpleCursorAdapter(this, R.layout.quoterow, myCursor, new String[]{"_id", "quote"}, new int[]{R.id.quote});
although I should mention the original did not include the _id
column, I added this recently to try and solve the problem. Has anyone got any ideas that might help solve the problem?