vendredi 4 septembre 2015

SQLiteDatabase to close or not to close after using

When I look at examples from tutorials I see that for getReadableDatabase the db is not closed at the end but for getWritableDatabase it is always closed at the end. Why is that? Even the docs specify that I must call close on getWritableDatabase. I have read both docs, so please do not simple quote the docs to me. Thanks.

Aucun commentaire:

Enregistrer un commentaire