I wrote the application for android, all data is selected from the database and displayed on the screen. Tested in genymotion on a Google Galaxy Nexsus 4.2.2 API 17 model, everything was fine. But on all other models, when I tried to run, the data from the database returns false . For example:
Cursor cursor = dbHelper.rawQuery("SELECT * FROM users", null);
here the cursor returns false , for any query, any column, and so on. But in the model that indicated above, everything works fine. Has anyone come across this?
Ps I tried on emulators with the same version 4.2.2 and API 17, it still does not work.
cursor.moveToFirst()
aboutcursor.moveToFirst()
or what? Well, yes,cursor.close()
? - Suvitruf ♦