SQLite CursorWindow limit - How to avoid crash
问题 I have to execute a query and store the result in a list, the function that I use is this follow : List<SpoolInDB> getSpoolInRecords(String label, boolean getLastInserted) { List<SpoolInDB> spoolInList = new ArrayList<>(); try { if (mdb == null) mdb = mdbHelper.getWritableDatabase(); SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); qb.setTables(TABLE_SPOOLIN); Cursor c = qb.query(mdb, null, " label='" + label + "'", null, null, null, " dateins " + (getLastInserted ? "desc" : "asc")); if (c !