I'm just interesting: can I use something else for retrieving data from the database instead of using Cursor
like this:
Cursor fetch_ = database_.rawQuery("SELECT " + USER_ID + " FROM " + TABLE_NAME, null);
if (fetch_.moveToFirst()) {
do {
String data_ = fetch_.getString(fetch_.getColumnIndex("userId"));
} while (fetch_.moveToNext());
}
fetch_.close();
So are there some other ways? May be I can fetch data directly in Java data structures like HashMap<>
or something else?