Ok, i found the error. i was using sendBroadcast() instead of sendOrderedBroadcast().
Sorry! On Aug 27, 11:20 am, Swanz <[EMAIL PROTECTED]> wrote: > Hi. > > I'm trying to use the abortBroadcast() method of the BroadcastReceiver > class, but it seems not to work. > > Here's the situation: > > a background service send an intent with action="X"; a > BroadcastReceiver registered in the manifest catch this intent. > When the Activity Y is in foreground it registers another BCreceiver > that responds at the same intent X. > > Now, when the last receiver catch the intent i use abortBroadcast() to > prevent the first to do the same, but it doesnt work. In the activity > the abort flag is TRUE, but if i read it in the first receiver is > always FALSE. > > Can anybody tell me where i do wrong? > > Thanks (and sorry for my bad bad english). --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---