Re: [android-developers] Re: Data written to SQLite database not immediately available

2011-12-23 Thread Ralph Bergmann | the4thFloor.eu
Am 23.12.11 00:06, schrieb lbendlin: it's not a bug, that's how SQLite works. You can't have concurrent writes. Not sure how the content provider buffers this but if you do plain SQLite you are basically blocking the database with each write, and you need to use semaphores to manage that. I

Re: [android-developers] Re: Data written to SQLite database not immediately available

2011-12-23 Thread Kostya Vasilyev
To OP: Do your threads use separate instances of SQLiteDatabase object pointing to the same database one- or one SQLiteDatabase instance, shared? 23.12.2011 18:03, Ralph Bergmann | the4thFloor.eu пишет: Am 23.12.11 00:06, schrieb lbendlin: it's not a bug, that's how SQLite works. You can't

Re: [android-developers] Re: Data written to SQLite database not immediately available

2011-12-23 Thread Erik
The threads use the content provider. The content provider's insert() method gets a database from the SQLiteOpenHelper each time. I'll add that the content provider we're using is a modified version of Google's telephony content provider. We've been able to duplicate this behavior with the

[android-developers] Re: Data written to SQLite database not immediately available

2011-12-22 Thread lbendlin
it's not a bug, that's how SQLite works. You can't have concurrent writes. Not sure how the content provider buffers this but if you do plain SQLite you are basically blocking the database with each write, and you need to use semaphores to manage that. -- You received this message because you