Saturday, October 30, 2010

[android-developers] Re: Is it possible to run multiple Broadcast receivers for the same Intent in the same application?

On Oct 25, 4:12 pm, Some Coder <somecoder...@gmail.com> wrote:
> Is it possible to register multiple BroadcastReceivers for the same
> Intent in the same application and have them all run?

You might want to read the documentation for BroadcastReceiver,
understand the different between normal and ordered broadcasts, and
find out which one the third party is generating. My guess is that
it's generating an ordered broadcast and sometimes its own receiver is
catching it first and aborting it.

I don't think it's a good idea to re-broadcast normal broadcasts,
because I imagine your receiver and any others could get called more
than once (or even infinitely?!) if you're not careful. And I don't
think it's possible to force yourself to receive an ordered broadcast
if it was aborted upstream.

Doug

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate