0

In my application I do multi-threads to perform different operations in the background. I know that I can solve it by making the Data-base SingleTon and use the WRITE_AHEAD_LOGGING privilege, but this only supported from API 16 and higher. I have a lot of users that use lower APIs.

Is there another way to solve this problem?

Sami Eltamawy
  • 9,874
  • 8
  • 48
  • 66

1 Answers1

0

No.

According to the SQLite docs:

Beginning with version 3.7.0, a new "Write-Ahead Log" option (hereafter referred to as "WAL") is available.

Before that, SQLite used an exclusive locking mechanism as described here.

Problem is, according to this SO answer, SQLite v3.7.x was added to Android in Honeycomb.

Community
  • 1
  • 1
Mister Smith
  • 27,417
  • 21
  • 110
  • 193