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 think a content provider can handle that. I think you only have a timing problem. The content provider needs a little bit to store the data. You send a ping from one thread to the other thread. A better solution is to register a content observer. With this observer the other thread gets automatically a notification if the content provider has saved the data. Ralph -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en