I read a lot about using standard SQLiteDatabase in android, and it seems like the best way is to save one instance of SQLiteOpenHelper and never close the returned SQLiteDatabase or SQLiteOpenHelper object. The question is, are these recommendations valid when using the SQCipher encryption library? It seems that the SQLiteOpenHelper close () method in the SQCipher package is not empty and frees up some things. Is it safe to never call this method?
The following is the actual code of the SQLiteDatabase.close () method from Github ( http://goo.gl/u4L0C ):
public void close() { if (!isOpen()) { return;
source share