Hello,

I will briefly describe application I am writing.

1. Application is used in environment where phone/tablet may not have
network connectivity, person is collecting some data using the app on
the device.
2. This collected data is stored using a content provider, that uses
sqlite database (SQLiteCursorLoader from CommonsWare book) and this
content provider is part of library.
3. There is background service that is gets started when upon boot
completed notification, and it waits for network connectivity
broadcast. Once the device has
    network connection, it retrieves the data using the content
provider in step 2. This service  uploads the collected data to amazon
cloud service.
    We don't want this upload process to happen in context of UI hence
the service.

I read the commons ware book (page 459 to be specific)  and the
database instance that content provider uses singleton database object
based off of getActivity().getApplicationContext().

Now the question is -- what happens if the service (3) is using the
content provider and user starts the UI (1)  that also attempts to use
the same content provider, is the UI going to experience issue opening
the database, is it going to encounter ANR?

Put other way,  does the content provider run in its own process? And
are requests & responses to content provider serialized?

If there is good description of multiple clients using a content
provider (simultaneously) and issues involved would appreciate pointer
to that.

-Subodh Nijsure

-- 
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

Reply via email to