0

How to increase the busy timeout for the SQLite on Android ? It would be useful for situations when two threads are simultaneously trying to insert some data to DB and exception is thrown:

    android.database.sqlite.SQLiteException: error code 5: database is locked. 
jezi-A-raf
  • 1
  • 1
  • 1

1 Answers1

0

You should have one instance of SQLiteOpenHelper then it works.

The answer which explains it

Community
  • 1
  • 1
pawelzieba
  • 16,082
  • 3
  • 46
  • 72