Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You should register for <code>Intent.ACTION_NEW_OUTGOING_CALL</code> </p> <blockquote> <blockquote> <p>Broadcast Action: An outgoing call is about to be placed.</p> </blockquote> <p>The Intent will have the following extra value:</p> <p>EXTRA_PHONE_NUMBER - the phone number originally intended to be dialed. Once the broadcast is finished, the resultData is used as the actual number to call. If null, no call will be placed.</p> <p>It is perfectly acceptable for multiple receivers to process the outgoing call in turn: for example, a parental control application might verify that the user is authorized to place the call at that time, then a number-rewriting application might add an area code if one was not specified.</p> <p>For consistency, any receiver whose purpose is to prohibit phone calls should have a priority of 0, to ensure it will see the final phone number to be dialed. Any receiver whose purpose is to rewrite phone numbers to be called should have a positive priority. Negative priorities are reserved for the system for this broadcast; using them may cause problems.</p> <p>Any BroadcastReceiver receiving this Intent must not abort the broadcast.</p> <p>Emergency calls cannot be intercepted using this mechanism, and other calls cannot be modified to call emergency numbers using this mechanism.</p> <p>Some apps (such as VoIP apps) may want to redirect the outgoing call to use their own service instead. Those apps should first prevent the call from being placed by setting resultData to null and then start their own app to make the call.</p> <p>You must hold the PROCESS_OUTGOING_CALLS permission to receive this Intent.</p> <p>This is a protected intent that can only be sent by the system.</p> <p>Constant Value: "android.intent.action.NEW_OUTGOING_CALL"</p> </blockquote>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload