In my android app, there are two processes, let’s say process A and B
It is funny that if process A tries to access the sqlite database, everything is fine.
However, if process B does so, following exception will be shown
android.database.sqlite.SQLiteException: unable to open database file:
BEGIN EXCLUSIVE;
FYI, actually not my app tries to use SQLite database. Instead, I use Google Analytics to track users and it uses SQLite database.
Why does this happen? Thank You.
Actually what you are using is
Transaction.and when transaction is in progress no other process can access the database.I think that is why you are getting this exception
Sometimes it happens
beginTransactionis called on a not-open database connection.