I like to use platform Contacts Content Provider from 2 different
threads in my application. My application has one background thread
that runs as part of the service.

It may happen that an activity is accessing the contact CP and at the
same time an alarm expires that triggers my service thread to read
from contact CP.

Will it cause any problem? Do I need to guard the access with a lock
in the code?

Appreciate your feedback.

Thanks.
--~--~---------~--~----~------------~-------~--~----~
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