Sunday, December 19, 2010

Re: [android-developers] ContentObserver and BroadcastReceiver

Ah ok, thanks for the reply.

Regards,
Julius.


On 20/12/2010, at 3:58 PM, Dianne Hackborn wrote:

> No there isn't. This is deliberate, as having apps suddenly getting launched left and right as syncs happen in the background stuff is likely to lead to an undesirable outcome. The approach we generally take is that in cases where there is some kind of change that may happen that an app may reasonably be launched for, defining a specific broadcast for that that the content provider sends at that point. For example there is a broadcast the gmail provider sense when new mail has arrived.
>
> On Sun, Dec 19, 2010 at 6:23 PM, Julius Spencer <julius@msa.co.nz> wrote:
> Hi,
>
> (Note: might be a silly question...)
>
> I have an application which has data related to a ContentProvider. The ContentProvider's content is updated from time to time and a ContentObserver seems like a good choice to know about these updates.
>
> Is there a way to have a have a cross between a ContentObserver and a BroadcastReceiver so that the application doesn't need to be running and yet when content is updated a broadcast is created?
>
> Regards,
> Julius.
>
> --
> 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+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
>
>
> --
> Dianne Hackborn
> Android framework engineer
> hackbod@android.com
>
> Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them.
>
>
> --
> 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+unsubscribe@googlegroups.com
> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment