public ArrayList<MenuItem> createCollectionList() { Cursor curs = fetchCollectionList(); try { ArrayList<MenuItem> charList = new ArrayList<MenuItem>(); MenuItem child; boolean hasNext = curs.moveToFirst(); while (hasNext) { child = new MenuItem(); child.setId(curs.getInt(0)); child.setName(curs.getString(1)); charList.add(child); hasNext = curs.moveToNext(); } return charList; } finally { curs.close(); } }