You can't abort an SMS broadcast. This could allow applications to do all sorts of things the user might not want.
Cheers, Justin Android Team @ Google On Aug 20, 10:27 am, marcel-182 <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm looking for a way to abort the broadcast of an incoming SMS or > remove the message from the Intent in my BroadcastReceiver (For > example if the receiver finds a message with a special prefix). > Calling BroadcastReceiver.abortBroadcast() causes an exception: > java.lang.RuntimeException: BroadcastReceiver trying to return result > during a non-ordered broadcast > > Calling setOrderedHint(true) in the onReceive() method of my > BroadcastReceiver doesn't help. The exception is gone but calling > abortBroadcast() doesn't abort the broadcast. I also played with the > android:priority attribute in the AndroidManifest.xml. > > Any ideas? > > Regards, > Marcel --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---