title: How to pause outgoing call till verification in android
body: <p>I need to pause the outgoing call till I enter correct PIN. Only authorized user can make call . I have used <code>BroadcastReceiver</code> for detecting the outgoing call.</p>
  
  <p>This is my code,</p>
  
  <pre><code>public void onReceive(Context context, Intent intent) {
      String number = intent.getStringExtra(Intent.EXTRA_PHONE_NUMBER).toString();
  
      //if u want to block particular call then check number or else block all call in thid code
      if (worngPIN){
          setResultData(null);//Canceling call operation 
          Toast.makeText(context, "This call is not Allowed", Toast.LENGTH_LONG).show();
      }
  }
  </code></pre>
  
  <p>I'm able to  see the <code>Toast</code> message but call is connecting.</p>
  
  <p>I tested in version 5.1.</p>