I can’t find what causing this error in my database, I posted some question before related to this issue but since the code is quite long i remove some of them that has the same
declaration because stackoverflow won’t allow me to post more than 3000 characters. i tried using this method to close the cursor, but somehow it doesn’t fix the problem.
public Cursor getMove(){
String[] columns = new String[]{KEY_ID1, KEY_MOVENAME};
Cursor c = null;
try {
c = ourDatabase.query(DATABASE_TABLE1, columns, null, null, null, null, null);
} finally {
if(c != null){
c.close();
}
}
return c;
}
Anyway [here’s] the whole class I hope someone can help me.
Closing the cursor is the reason why I’m getting this error so instead of this:
I just used this line of code: