Android Cursor with ORMLite to use in CursorAdapter

后端 未结 4 1030
孤独总比滥情好
孤独总比滥情好 2020-11-29 17:31

Is there any way, how to get Cursor for a query, which I am processing with ORMLite Dao object?

4条回答
  •  野性不改
    2020-11-29 17:58

    If you're in an Activity and don't want to mess around with the QueryBuilder give the following a go, which is just as effective.

    Cursor cursor = getHelper().getReadableDatabase().query(tableName, projection, selection, selectionArgs, groupBy, having, sortOrder)
    

提交回复
热议问题