Hi,
I'm working on a project where I need to run the BroadcastReceiver for
a third party library for a specific Intent.

I also want to run some of my own code when the Intent is broadcast.
If I supply my own BroadcastReceiver for the same Intent, it seems
that only, one or the other runs, but not both, depending on which
appears first in the AndroidManifest.xml file.

Is it possible to register multiple BroadcastReceivers for the same
Intent in the same application and have them all run?

AndroidManifest.xml snippet:
<receiver android:name="com.third.party.code.BroadcastReceiver"
android:exported="true">
 <intent-filter>
   <action android:name="com.third.party.code.BROADCAST_SOMETHING" />
 </intent-filter>
</receiver>

<receiver android:name="com.foo.bar.MyBroadcastReceiver"
android:exported="true">
 <intent-filter>
   <action android:name="com.third.party.code.BROADCAST_SOMETHING" />
 </intent-filter>
</receiver>


If it isn't possible, can I have my receiver re-send the intent to the
third party receiver?

Any info would be much appreciated.

-D

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to