Android sqlite with multi thread
问题 I am writing a android application using sqlite . There are many activities and one service. I use the DB from more than one thread. It works perfectly in Android 2.X , but once I run it in Android 3.X it always throws this error and Force Close : 05-04 22:17:04.815: I/SqliteDatabaseCpp(8774): sqlite returned: error code = 5, msg = database is locked, db=/data/data/xxx/databases/im 05-04 22:17:04.815: E/SqliteDatabaseCpp(8774): sqlite3_open_v2("/data/data/xxx/databases/im", &handle, 6, NULL)