If I have code like this
private final SQLiteDatabase database;
private final SQLiteOpenHelper helper;
// ...
this.database = helper.getWritableDatabase();
// ...
Do I need to call close() explicitly?
I am confused by this answer: https://stackoverflow.com/a/18595604/4932519
Take a look to doc for getWritableDatabase():
Once opened successfully, the database is cached, so you can call this method every time you need to write to the database. (Make sure to call close() when you no longer need the database.)
P.S. Sorry for my English.