public List<Ganga> getGangas() { List<Ganga> gangas = new ArrayList<>(); GangaCursorWrapper cursor = queryGangas(null, null); try { cursor.moveToFirst(); while (!cursor.isAfterLast()) { gangas.add(cursor.getGanga()); cursor.moveToNext(); } } finally { cursor.close(); } return gangas; }