ORMLite with CursorAdapter in Android
问题 I am modifying my Android app to work with ORMLite, and it currently uses a number of CursorAdapters, which I quite want to keep in an attempt to minimise coding. I'm not 100% sure but t appears that when ORMLite creates an id field in the db, it always uses id , whereas CursorAdapter needs _id . It is possible to get round this using a query like the following: select id as _id ...... but the Dao.queryRaw() method returns a list, not a Cursor, so the way I have done it is to open another