1 - sync adapter was created to synchronize client and server data on the 
background. It is executed as a different process than the app.

2 - SQLite cannot be written by multiple processes

Considering these two points, how am I supposed to write the data parsed 
from server to the sqlite database ? Will a ContentProvider work in this 
scenario ? Is this the only option ?

ps. All answers I found here are about reading/writing from multiple 
threads. In this case Android implementation (using SQLiteOpenHelper) will 
serialize the access to a single db connection. My problem, though, is that 
sync adapter run as a different process than the app, making it impossible 
to synchronize via Java code.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/fb15499f-ee13-46a3-a8d8-3eb59a40a66a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to