private Category cursorToCategory(Cursor cursor) { System.out.println( "*******************cursorToCategory************************KOLUMNEJA" + cursor.getColumnCount()); // Log.d("cursorToCategory", "cursor.getLong(0) ID..>" +cursor.getLong(0) +" CATEGORYTEXT: " + // cursor.getString(1) + " cursor.getLong(2) RECEIPTID---> " +cursor.getLong(2)); Category newCategory = new Category(); newCategory.setCategoryId(cursor.getLong(0)); newCategory.setCategoryText(cursor.getString(1)); System.out.println("CATEGORY: " + newCategory.getCategoryText()); newCategory.setReceiptId(cursor.getLong(2)); System.out.println("newCategory in cursorToCategory---->" + newCategory); return newCategory; }