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