Whenever I invoked `sendBroadcast()` using an intent with Component
name set, it does not get properly delivered to the destination's
broadcast receiver.

As an example, assume that I have a TargetActivity that registered a
BroadcastReceiver for ACTION1

This will work:

Intent i = new Intent(TargetActivity.ACTION1);
sendBroadcast(i);


This does not:

Intent i = new Intent(TargetActivity.ACTION1);
i.setClassName(this, TargetActivity.class);
sendBroadcast(i);

I also tried i.setClass() with no luck. Is this behavior expected?

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