I am blocking the incoming call by using following code,
{
telephonyService = (ITelephony) method.invoke(telephonyManager);
telephonyService.silenceRinger();
telephonyService.endCall();
}
But I want to know how to block the out going call ?
and in your broadcastreciever
with this you can get number
see this to block call How to Block outgoing calls and Text SMS check dharmendar answer