android - Workaround for needing an _id row for CursorAdapter -


i found out in order android cursoradapter class work need row _id. now, have specific naming scheme , not want change id column (called id) _id tables need cursoradapters for. think affect readability of of complex queries- plus "_id" ugly :p.

i'm debating using custom "tableid _id" select queries, sqlitedatabase's nice query methods , doesn't support renaming columns in query.

it seems rather inflexible (and odd) require specific table column name. there way specify column use id column cursoradapter? or maybe workaround haven't thought of?

two alternate solutions either use cursorwrapper, or use projectionmap of managedquery map uid to_id.


Comments