tags:

views:

13

answers:

0

Calling BroadCastReceiver class from Service.

My Question is : How to call/instantiate "BlockMyCall" (a class which extends BroadcastReciever) from a Service ( referred to as "SimpleClass1 in my question")

I have 3 classes in App.

1) "BlockMyCall" extends BroadcastReceiver {this class has code to block the outbound calls, using Intent.ACTION_NEW_OUTGOING_CALL}

2) "SimpleClass1" extends Service - {this class has code that initiates BlockMyCall and has timer constantly listening to users input}

3) PhoneBlock extends Activity-{has code that blocks call}

Thank you very much.