Can anyone clarify how loading server side data into an android sqlite db via a cursor should work with regards to ids? Should I have '_id' column in each table and also a column with my server side uids? This seems awkward. I am missing whether I can just insert my own row ids (from a PostgreSql db) into the '_id'开发者_如何学JAVA column and whether there are some implications of this that will make me sorry later?
_id
is used only in CursorAdapter to determine which column is id. You can override this behavior in CursorAdapter or add alias in query to id.
精彩评论