Um, don't do this. Whatever you are doing this for, you can be sure it will break in the future.
On Fri, Jul 3, 2009 at 8:55 PM, Seer <gilligan.ch...@gmail.com> wrote: > > Guys, > I am trying to get the intent "android.intent.action.BOOT_COMPLETED" > sent only to the receiver > "com.android.mms.transaction.MmsSystemEventReceiver" as this triggers > the sms notification to be updated and removed if there is no longer > any unread sms's. The issue i have is i need to make sure the > broadcast is only sent to the class above. If it goes to other > receivers the phone could end up in an unknown state or something > strange. > > The code below does not seem to work. > > Intent intent = new Intent(); > intent.setAction("android.intent.action.BOOT_COMPLETED"); > intent.setClassName("com.android.mms", > ".transaction.MmsSystemEventReceiver"); > activity.sendBroadcast(intent); > > This code does work but since it goes to all receivers i have noticed > some errors starting to show up in logs etc. > Intent intent = new Intent(); > intent.setAction("android.intent.action.BOOT_COMPLETED"); > activity.sendBroadcast(intent); > > Chris > > > -- 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 -~----------~----~----~----~------~----~------~--~---