I have a listview. I get data from an SQLite database. I get this error:
It occurs when I go from line 20 to 21:
I placed cursor.deactivate() and cursor.close() on line 50, with no result. Why I get this error and how to solve it?
cursor.deactivate()
cursor.close()
Always, remember to close the cursor by calling cursor.close() before closing the database. That should fix your problem.