I have an open database an read out some data. After my read operations are done I close the database but not the cursor.
Do I need to close the Cursor too? I assume it will be done by the close of the db, but is that true? What may happen if I don't close the Cursor?
SQLiteDatabase db = ...;
Cursor c = database.rawQuery("SELECT * FROM foo");
//read some values using the Cursor
c.close(); //<- is this required?
db.close();