title: PROCESS_OUTGOING_CALLS how to stop a call from being place? android
body: <p>what can be done to stop outgoing calls from an android device for certain number at certain time. i am using the following permission: android.permission.PROCESS_OUTGOING_CALLS</p>
  
  <p>but the receiver is not able to stop the call </p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;uses-permission android:name="android.permission.CALL_PHONE" /&gt;
  &lt;uses-permission android:name="android.permission.CALL_PRIVILEGED" /&gt;
  &lt;uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /&gt;
  &lt;uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS" /&gt;
  &lt;uses-permission android:name="android.permission.READ_PHONE_STATE" /&gt;
  &lt;uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS" /&gt;
  
       &lt;receiver android:name=".receiver.NewOutgoingCallReceiver" android:exported="true"&gt; 
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.NEW_OUTGOING_CALL" /&gt; 
              &lt;category android:name="android.intent.category.DEFAULT" /&gt; 
          &lt;/intent-filter&gt; 
      &lt;/receiver&gt;
  </code></pre>
  
  <p>and here is the receiver code:</p>
  
  <pre><code>public void onReceive(Context context, Intent intent) {
      // TODO Auto-generated method stub
      String incomingNumber = intent.getStringExtra(Intent.EXTRA_PHONE_NUMBER);
      Log.d("NewOutgoingCallReceiver",
              "&gt;&gt;&gt;&gt;&gt;&gt; Intent.EXTRA_PHONE_NUMBER: "
                      + incomingNumber);
      Toast.makeText(context, "Call - " + incomingNumber, Toast.LENGTH_LONG).show();
      abortBroadcast();
  }
  </code></pre>
  
  <p>The android system still places a call. In this demo I just want to system to stop placing all calls.</p>