This line shows the number of items that the Cursor holds?

userCursor = db.rawQuery("select * from "+ DatabaseHelper.TABLE, null); header.setText("Найдено элементов: " + String.valueOf(userCursor.getCount())); 
  • need more code) - Ksenia
  • dobail) pperesmotrat) - elik
  • How did I get the cursor to get the object data and getCount (): get the number of objects retrieved from the database? - elik

1 answer 1

int getCount () Returns the number of rows in the cursor. That is, it returns the number of rows in the cursor.

A source

  • 2
    thank you very much help - elik