Have the service do a callback to activities during just before starting and after to prevent this, and return an empty list if they are not well-behaved and request during this time. On Mar 8, 2012 9:43 AM, "bob" <[email protected]> wrote:
> So, I have a content provider that maintains a list of movies. > > Also, there is a service that runs in the background and refreshes the > list of movies every five minutes. > > Is there a good way to ensure no one accesses the content provider's list > of movies while they are being refreshed? I don't want an activity to get > a partial list of movies. > > Thanks. > > > > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

