The data access code in my Android app raises an exception.
Here is the code that causes the exception:
String getPost = \"SELECT * FROM \" + TABLE_POST
This arises in the case our Cursor has data but not yet pointing to first index in the data list.
To get avoid this exception, we first should check:
if (!cursor.moveToFirst()) cursor.moveToFirst();
And then carry the further actions.