One does not CALL BroadcastReceivers from Intents. One sends messages
to them, usually via an Intent.

See, for example, 
http://developer.android.com/guide/topics/intents/intents-filters.html,
which has, among other relevant data:

Intent objects passed to any of the broadcast methods (such as
Context.sendBroadcast(), Context.sendOrderedBroadcast(), or
Context.sendStickyBroadcast()) are delivered to all interested
broadcast receivers

The whole of 
http://developer.android.com/guide/topics/intents/intents-filters.html
should be not only read, but studied by any serious Android developer.

On Jul 9, 8:00 am, ranjan ar <ranjan....@gmail.com> wrote:
> Hello ,
> I have a broadcast class that blocks the incoming call. I want to call that
> broadcast receiver from the activity . Can any one help me fix this. I
> appreciate your help.
> 1. Class A extends activity will call Class B that extends
> BroadcastReceiver, now I want to block calls , only based on certain
> requirements, which are checked in Class A, if true then call the Class B
> (or block the call in short)

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

Reply via email to