@Mark, They can send sticky broadcasts but you have to request permission in your manifest
http://developer.android.com/reference/android/Manifest.permission.html#BROADCAST_STICKY Shawn On Feb 6, 8:25 am, Mark Murphy <mmur...@commonsware.com> wrote: > Actually, I'm fairly certain that SDK apps can't send sticky > broadcasts, as I looked into doing that once. > > > > On Sun, Feb 6, 2011 at 2:31 AM, Dianne Hackborn <hack...@android.com> wrote: > > It is nothing complicated. It is just the last Intent that was sent with > > sendStickBroadcast() that matches the IntentFilter you are using. (If there > > are multiple matches, it is randomly one of them.) > > That said, I would generally discourage third party apps from using sticky > > broadcasts. You can accomplish the same thing other ways, and they are > > generally cleaner. > > > On Sat, Feb 5, 2011 at 7:49 PM, AndroidDevTime <androiddevd...@gmail.com> > > wrote: > > >> ok, so I can use sendStickyBroadcast(). Just wondered how much I > >> know about the delivery of the latest broadcast that I get back this > >> way. Is there any way to know if it was processed? or do I need to > >> send a confirmation broadcast? What do I know for sure about the > >> broadcast that i get back from registerReceiver(null, Intent). Was > >> this the last Intent that was sucessfully delivered to all broadcast > >> receivers, or was it the last one that where sendStickBroadcast was > >> called? > > >> On Feb 5, 7:27 pm, Dianne Hackborn <hack...@android.com> wrote: > >> > It only works for a broadcast that is sent with sendStickyBroadcast(). > > >> > On Sat, Feb 5, 2011 at 7:08 PM, AndroidDevTime > >> > <androiddevd...@gmail.com>wrote: > > >> > > I have seen registerReceiver(null, Intent) can be used to get last > >> > > System level broadcast values such as battery level. Does this also > >> > > work for custom application Intents? Lets say I have an application > >> > > Intent called SetOrder and I broadcast this Intent. Using > >> > > registerReceiver(null, SetOrder) can I get last SetOrder broadcast? > >> > > How does one know if it was really the last one, it it was received > >> > > and processed? How can you confirm that it was really handed > >> > > somewhere by a broadcast receiver? 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<android-developers%2bunsubscr...@googlegroups.com> > >> > > For more options, visit this group at > >> > >http://groups.google.com/group/android-developers?hl=en > > >> > -- > >> > Dianne Hackborn > >> > Android framework engineer > >> > hack...@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+unsubscr...@googlegroups.com > >> For more options, visit this group at > >>http://groups.google.com/group/android-developers?hl=en > > > -- > > Dianne Hackborn > > Android framework engineer > > hack...@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+unsubscr...@googlegroups.com > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > Warescription: Three Android Books, Plus Updates, One Low Price! -- 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