Concurrent access to a SQLite database in Android - db already closed
问题 I read a lot of topics on this subjet but no one could answer my question. I access my database from concurrent threads, my SQLiteOpenHelper implements the design pattern of the singleton so I have only one instance for my app. I access my database with code like this : SQLiteDatabase db = DatabaseHelper.getInstance().getWritableDatabase(); ... Do some update in the DB ... db.close(); I don't understand why I still get "db already closed" error, shouldn't the getWritableDatabase() method lock