Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Constants](https://developer.android.com/reference/android/telecom/TelecomManager#constants) \| [Methods](https://developer.android.com/reference/android/telecom/TelecomManager#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/telecom/TelecomManager#inhmethods)

# TelecomManager

*** ** * ** ***


`
public


class
TelecomManager
`


`

extends https://developer.android.com/reference/java/lang/Object


`

`


`

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.telecom.TelecomManager |

<br />

*** ** * ** ***

The Android Telecom framework manages audio and video calls on an Android device. It acts as a
central switchboard, connecting applications that provide calling capabilities (like
SIM-based/telephony calls or VoIP apps) with applications that provide the user interface for
calls (like the default Phone app). Key functions include routing calls, managing call states,
and integrating various calling services into a consistent user experience. It allows developers
to create replacements for the default phone app or integrate their own calling solutions
(e.g., VoIP) into the native Android calling system.


Note: The operation of the Telecom framework (this manager class, and other APIs such as
`https://developer.android.com/reference/android/telecom/InCallService`, `https://developer.android.com/reference/android/telecom/ConnectionService`) is gated by
`https://developer.android.com/reference/android/content/pm/PackageManager#FEATURE_TELECOM`. It is expected that the Telecom
framework is available on ALL devices where "calls" may take place. A call is defined generally
as any communication using a microphone and audio output device. This broadly includes phones,
tablets, wearables such as watches, and integrated automotive OSes.


Common configurations include phones which will have both
`https://developer.android.com/reference/android/content/pm/PackageManager#FEATURE_TELEPHONY_CALLING` and
`https://developer.android.com/reference/android/content/pm/PackageManager#FEATURE_TELECOM` and tablets which will only have
`https://developer.android.com/reference/android/content/pm/PackageManager#FEATURE_TELECOM`.


Apps do not instantiate this class directly; instead, they retrieve a reference to an instance
through `https://developer.android.com/reference/android/content/Context#getSystemService(java.lang.Class<T>)`.


Note that access to some telecom information is permission-protected. Your app cannot access the
protected information or gain access to protected functionality unless it has the appropriate
permissions declared in its manifest file. Where permissions apply, they are noted in the method
descriptions.


Requires the `https://developer.android.com/reference/android/content/pm/PackageManager#FEATURE_TELECOM` feature which can be detected using `https://developer.android.com/reference/android/content/pm/PackageManager#hasSystemFeature(java.lang.String)`.

## Summary

| ### Constants ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_CALL_BACK` Activity action: Triggers the calling UI and initiates a call back to a previous call made by the application. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_CHANGE_DEFAULT_DIALER` Activity action: Shows a dialog asking the user whether or not they want to replace the current default Dialer with the one specified in `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_CHANGE_DEFAULT_DIALER_PACKAGE_NAME`. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_CHANGE_PHONE_ACCOUNTS` The `https://developer.android.com/reference/android/content/Intent` action used to show the settings page used to configure `https://developer.android.com/reference/android/telecom/PhoneAccount` preferences. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_CONFIGURE_CALL_LOG_INTEGRATION` Activity Action: Show the settings for configuring call log integration. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_CONFIGURE_PHONE_ACCOUNT` An `https://developer.android.com/reference/android/content/Intent` action sent by the telecom framework to start a configuration dialog for a registered `https://developer.android.com/reference/android/telecom/PhoneAccount`. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_DEFAULT_CALL_SCREENING_APP_CHANGED` Broadcast intent action indicating that the current default call screening app has changed. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_DEFAULT_DIALER_CHANGED` Broadcast intent action indicating that the current default dialer has changed. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_INCOMING_CALL` *This constant was deprecated in API level 26. Use `https://developer.android.com/reference/android/telecom/TelecomManager#addNewIncomingCall(android.telecom.PhoneAccountHandle,%20android.os.Bundle)` instead.* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_PHONE_ACCOUNT_REGISTERED` `https://developer.android.com/reference/android/content/Intent` action used indicate that a new phone account was just registered. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_PHONE_ACCOUNT_UNREGISTERED` `https://developer.android.com/reference/android/content/Intent` action used indicate that a phone account was just unregistered. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_POST_CALL` Start an activity indicating that the completion of an outgoing call or an incoming call which was not blocked by the `https://developer.android.com/reference/android/telecom/CallScreeningService`, and which was NOT terminated while the call was in `https://developer.android.com/reference/android/telecom/Call#STATE_AUDIO_PROCESSING`. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_SHOW_CALL_ACCESSIBILITY_SETTINGS` The `https://developer.android.com/reference/android/content/Intent` action used to show the call accessibility settings page. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_SHOW_CALL_SETTINGS` The `https://developer.android.com/reference/android/content/Intent` action used to show the call settings page. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_SHOW_MISSED_CALLS_NOTIFICATION` Broadcast intent action for letting custom component know to show the missed call notification. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_SHOW_RESPOND_VIA_SMS_SETTINGS` The `https://developer.android.com/reference/android/content/Intent` action used to show the respond via SMS settings page. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_VOIP_CALL_LOG_PREFERENCE` Broadcast intent action indicating that the call log preference is updated by the user. |
| `char` | `https://developer.android.com/reference/android/telecom/TelecomManager#DTMF_CHARACTER_PAUSE` The dual tone multi-frequency signaling character sent to indicate the dialing system should pause for a predefined period. |
| `char` | `https://developer.android.com/reference/android/telecom/TelecomManager#DTMF_CHARACTER_WAIT` The dual-tone multi-frequency signaling character sent to indicate the dialing system should wait for user confirmation before proceeding. |
| `int` | `https://developer.android.com/reference/android/telecom/TelecomManager#DURATION_LONG` A integer value for `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_CALL_DURATION`, indicates the duration of the completed call was \>= 120 seconds. |
| `int` | `https://developer.android.com/reference/android/telecom/TelecomManager#DURATION_MEDIUM` A integer value for `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_CALL_DURATION`, indicates the duration of the completed call was \>= 60 seconds and \< 120 seconds. |
| `int` | `https://developer.android.com/reference/android/telecom/TelecomManager#DURATION_SHORT` A integer value for `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_CALL_DURATION`, indicates the duration of the completed call was \>= 3 seconds and \< 60 seconds. |
| `int` | `https://developer.android.com/reference/android/telecom/TelecomManager#DURATION_VERY_SHORT` A integer value for `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_CALL_DURATION`, indicates the duration of the completed call was \< 3 seconds. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_CALL_BACK_NUMBER` The number which the party on the other side of the line will see (and use to return the call). |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_CALL_DISCONNECT_CAUSE` Optional extra for `https://developer.android.com/reference/android/telephony/TelephonyManager#ACTION_PHONE_STATE_CHANGED` containing the disconnect code. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_CALL_DISCONNECT_MESSAGE` Optional extra for `https://developer.android.com/reference/android/telephony/TelephonyManager#ACTION_PHONE_STATE_CHANGED` containing the disconnect message. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_CALL_DURATION` A integer value provided for completed calls to indicate the duration of the call. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_CALL_LOG_URI` Extra URI that is used by a dialer to query the `https://developer.android.com/reference/android/provider/CallLog` content provider and associate a missed call notification with a call log entry. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_CALL_NETWORK_TYPE` Optional extra for communicating the call network technology used by a `https://developer.android.com/reference/android/telecom/Connection` to Telecom and InCallUI. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_CALL_SUBJECT` Optional extra for `https://developer.android.com/reference/android/content/Intent#ACTION_CALL` containing a string call subject which will be associated with an outgoing call. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_CALL_TYPE` An optional `https://developer.android.com/reference/android/content/Intent` extra used with `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_CALL_BACK` to specify the desired call type for the callback. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_CHANGE_DEFAULT_DIALER_PACKAGE_NAME` Extra value used to provide the package name for `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_CHANGE_DEFAULT_DIALER`. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_DEFAULT_CALL_SCREENING_APP_COMPONENT_NAME` Extra value used with `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_DEFAULT_CALL_SCREENING_APP_CHANGED` broadcast to indicate the ComponentName of the call screening app which has changed. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_DISCONNECT_CAUSE` A integer value provided for completed calls to indicate the reason for the call disconnection. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_HANDLE` A `https://developer.android.com/reference/android/net/Uri` extra, which when set on the `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_POST_CALL` intent, indicates the uri handle(phone number) of the completed call. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_HAS_PICTURE` A boolean extra set on incoming calls to indicate that the call has a picture specified. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_INCOMING_CALL_ADDRESS` The extra used by a `https://developer.android.com/reference/android/telecom/ConnectionService` to provide the handle of the caller that has initiated a new incoming call. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_INCOMING_CALL_EXTRAS` Optional extra for `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_INCOMING_CALL` containing a `https://developer.android.com/reference/android/os/Bundle` which contains metadata about the call. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_INCOMING_VIDEO_STATE` Optional extra for `https://developer.android.com/reference/android/telecom/TelecomManager#addNewIncomingCall(android.telecom.PhoneAccountHandle,%20android.os.Bundle)` containing an integer that determines the requested video state for an incoming call. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_IS_DEFAULT_CALL_SCREENING_APP` Extra value used with `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_DEFAULT_CALL_SCREENING_APP_CHANGED` broadcast to indicate whether an app is the default call screening app. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_LOCATION` Extra for the call composer call location, an `https://developer.android.com/reference/android/location/Location` parcelable class to represent the geolocation as a latitude and longitude pair. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_NOTIFICATION_COUNT` The number of calls associated with the notification. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_NOTIFICATION_MISSED_REASON` Extra indicating the reason why the call was missed. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_NOTIFICATION_PHONE_NUMBER` The number associated with the missed calls. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_OUTGOING_CALL_EXTRAS` Optional extra for `https://developer.android.com/reference/android/content/Intent#ACTION_CALL` and `https://developer.android.com/reference/android/content/Intent#ACTION_DIAL` `Intent` containing a `https://developer.android.com/reference/android/os/Bundle` which contains metadata about the call. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_OUTGOING_PICTURE` A ParcelUuid used as a token to represent a picture that was uploaded prior to the call being placed. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_PHONE_ACCOUNT_HANDLE` The extra used with an `https://developer.android.com/reference/android/content/Intent#ACTION_CALL` and `https://developer.android.com/reference/android/content/Intent#ACTION_DIAL` `Intent` to specify a `https://developer.android.com/reference/android/telecom/PhoneAccountHandle` to use when making the call. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_PICTURE_URI` A `https://developer.android.com/reference/android/net/Uri` representing the picture that was downloaded when a call is received or uploaded when a call is placed. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_PRIORITY` Extra for the call composer call priority, either `https://developer.android.com/reference/android/telecom/TelecomManager#PRIORITY_NORMAL` or `https://developer.android.com/reference/android/telecom/TelecomManager#PRIORITY_URGENT`. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_START_CALL_WITH_RTT` A boolean extra, which when set on the `https://developer.android.com/reference/android/content/Intent#ACTION_CALL` intent or on the bundle passed into `https://developer.android.com/reference/android/telecom/TelecomManager#placeCall(android.net.Uri,%20android.os.Bundle)`, indicates that the call should be initiated with an RTT session open. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_START_CALL_WITH_SPEAKERPHONE` Optional extra for `https://developer.android.com/reference/android/content/Intent#ACTION_CALL` containing a boolean that determines whether the speakerphone should be automatically turned on for an outgoing call. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_START_CALL_WITH_VIDEO_STATE` Optional extra for `https://developer.android.com/reference/android/content/Intent#ACTION_CALL` containing an integer that determines the desired video state for an outgoing call. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_USE_ASSISTED_DIALING` The boolean indicated by this extra controls whether or not a call is eligible to undergo assisted dialing. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_UUID` Extra used with `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_CALL_BACK` to specify the UUID value representing the call ID returned by `https://developer.android.com/reference/android/telecom/CallControl#getCallId()`. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_VOIP_CALL_LOG_PREFERENCE_STATUS` Extra used with `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_VOIP_CALL_LOG_PREFERENCE` to specify the value of the VoIP call log preference for the app receiving the broadcast. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#GATEWAY_ORIGINAL_ADDRESS` An optional `https://developer.android.com/reference/android/content/Intent#ACTION_CALL` intent extra corresponding to the original address to dial for the call. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#GATEWAY_PROVIDER_PACKAGE` An optional `https://developer.android.com/reference/android/content/Intent#ACTION_CALL` intent extra denoting the package name of the app specifying an alternative gateway for the call. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#METADATA_INCLUDE_EXTERNAL_CALLS` A boolean meta-data value indicating whether an `https://developer.android.com/reference/android/telecom/InCallService` wants to be informed of calls which have the `https://developer.android.com/reference/android/telecom/Call.Details#PROPERTY_IS_EXTERNAL_CALL` property. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#METADATA_INCLUDE_SELF_MANAGED_CALLS` A boolean meta-data value indicating whether an `https://developer.android.com/reference/android/telecom/InCallService` wants to be informed of calls which have the `https://developer.android.com/reference/android/telecom/Call.Details#PROPERTY_SELF_MANAGED` property. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#METADATA_IN_CALL_SERVICE_CAR_MODE_UI` A boolean meta-data value indicating whether an `https://developer.android.com/reference/android/telecom/InCallService` implements an in-call user interface to be used while the device is in car-mode (see `https://developer.android.com/reference/android/content/res/Configuration#UI_MODE_TYPE_CAR`). |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#METADATA_IN_CALL_SERVICE_RINGING` A boolean meta-data value indicating whether an `https://developer.android.com/reference/android/telecom/InCallService` implements ringing. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/telecom/TelecomManager#METADATA_IN_CALL_SERVICE_UI` A boolean meta-data value indicating whether an `https://developer.android.com/reference/android/telecom/InCallService` implements an in-call user interface. |
| `int` | `https://developer.android.com/reference/android/telecom/TelecomManager#PRESENTATION_ALLOWED` Indicates that the address or number of a call is allowed to be displayed for caller ID. |
| `int` | `https://developer.android.com/reference/android/telecom/TelecomManager#PRESENTATION_PAYPHONE` Indicates that the address or number of a call belongs to a pay phone. |
| `int` | `https://developer.android.com/reference/android/telecom/TelecomManager#PRESENTATION_RESTRICTED` Indicates that the address or number of a call is blocked by the other party. |
| `int` | `https://developer.android.com/reference/android/telecom/TelecomManager#PRESENTATION_UNAVAILABLE` Indicates that the address or number of a call is unavailable. |
| `int` | `https://developer.android.com/reference/android/telecom/TelecomManager#PRESENTATION_UNKNOWN` Indicates that the address or number of a call is not specified or known by the carrier. |
| `int` | `https://developer.android.com/reference/android/telecom/TelecomManager#PRIORITY_NORMAL` Indicates the call composer call priority is normal. |
| `int` | `https://developer.android.com/reference/android/telecom/TelecomManager#PRIORITY_URGENT` Indicates the call composer call priority is urgent. |

| ### Public methods ||
|---|---|
| ` void` | ` https://developer.android.com/reference/android/telecom/TelecomManager#acceptHandover(android.net.Uri,%20int,%20android.telecom.PhoneAccountHandle)(https://developer.android.com/reference/android/net/Uri srcAddr, int videoState, https://developer.android.com/reference/android/telecom/PhoneAccountHandle destAcct) ` Called by an app to indicate that it wishes to accept the handover of an ongoing call to a `https://developer.android.com/reference/android/telecom/PhoneAccountHandle` it defines. |
| ` void` | ` https://developer.android.com/reference/android/telecom/TelecomManager#acceptRingingCall(int)(int videoState) ` *This method was deprecated in API level 29. Companion apps for wearable devices should use the `https://developer.android.com/reference/android/telecom/InCallService` API instead.* |
| ` void` | ` https://developer.android.com/reference/android/telecom/TelecomManager#acceptRingingCall()() ` *This method was deprecated in API level 29. Companion apps for wearable devices should use the `https://developer.android.com/reference/android/telecom/InCallService` API instead.* |
| ` void` | ` https://developer.android.com/reference/android/telecom/TelecomManager#addCall(android.telecom.CallAttributes,%20java.util.concurrent.Executor,%20android.os.OutcomeReceiver<android.telecom.CallControl,android.telecom.CallException>,%20android.telecom.CallControlCallback,%20android.telecom.CallEventCallback)(https://developer.android.com/reference/android/telecom/CallAttributes callAttributes, https://developer.android.com/reference/java/util/concurrent/Executor executor, https://developer.android.com/reference/android/os/OutcomeReceiver<https://developer.android.com/reference/android/telecom/CallControl, https://developer.android.com/reference/android/telecom/CallException> pendingControl, https://developer.android.com/reference/android/telecom/CallControlCallback handshakes, https://developer.android.com/reference/android/telecom/CallEventCallback events) ` Add a call to the Android system service Telecom. |
| ` void` | ` https://developer.android.com/reference/android/telecom/TelecomManager#addNewIncomingCall(android.telecom.PhoneAccountHandle,%20android.os.Bundle)(https://developer.android.com/reference/android/telecom/PhoneAccountHandle phoneAccount, https://developer.android.com/reference/android/os/Bundle extras) ` Registers a new incoming call. |
| ` void` | ` https://developer.android.com/reference/android/telecom/TelecomManager#addNewIncomingConference(android.telecom.PhoneAccountHandle,%20android.os.Bundle)(https://developer.android.com/reference/android/telecom/PhoneAccountHandle phoneAccount, https://developer.android.com/reference/android/os/Bundle extras) ` Registers a new incoming conference. |
| ` void` | ` https://developer.android.com/reference/android/telecom/TelecomManager#cancelMissedCallsNotification()() ` Removes the missed-call notification if one is present and marks missed calls in the call log as read. |
| ` https://developer.android.com/reference/android/content/Intent` | ` https://developer.android.com/reference/android/telecom/TelecomManager#createManageBlockedNumbersIntent()() ` Creates the `https://developer.android.com/reference/android/content/Intent` which can be used with `https://developer.android.com/reference/android/content/Context#startActivity(android.content.Intent)` to launch the activity to manage blocked numbers. |
| ` boolean` | ` https://developer.android.com/reference/android/telecom/TelecomManager#endCall()() ` *This method was deprecated in API level 29. Companion apps for wearable devices should use the `https://developer.android.com/reference/android/telecom/InCallService` API instead. Apps performing call screening should use the `https://developer.android.com/reference/android/telecom/CallScreeningService` API instead.* |
| ` https://developer.android.com/reference/android/net/Uri` | ` https://developer.android.com/reference/android/telecom/TelecomManager#getAdnUriForPhoneAccount(android.telecom.PhoneAccountHandle)(https://developer.android.com/reference/android/telecom/PhoneAccountHandle accountHandle) ` Returns a URI (with the content:// scheme) specific to the specified `https://developer.android.com/reference/android/telecom/PhoneAccount` for ADN content retrieval. |
| ` https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/android/telecom/PhoneAccountHandle>` | ` https://developer.android.com/reference/android/telecom/TelecomManager#getCallCapablePhoneAccounts()() ` Returns a list of `https://developer.android.com/reference/android/telecom/PhoneAccountHandle`s which can be used to make and receive phone calls. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/telecom/TelecomManager#getDefaultDialerPackage()() ` Used to determine the currently selected default dialer package. |
| ` https://developer.android.com/reference/android/telecom/PhoneAccountHandle` | ` https://developer.android.com/reference/android/telecom/TelecomManager#getDefaultOutgoingPhoneAccount(java.lang.String)(https://developer.android.com/reference/java/lang/String uriScheme) ` Return the `https://developer.android.com/reference/android/telecom/PhoneAccount` which will be used to place outgoing calls to addresses with the specified `uriScheme`. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/telecom/TelecomManager#getLine1Number(android.telecom.PhoneAccountHandle)(https://developer.android.com/reference/android/telecom/PhoneAccountHandle accountHandle) ` *This method was deprecated in API level 33. use `https://developer.android.com/reference/android/telephony/SubscriptionManager#getPhoneNumber(int)` instead, which takes a Telephony Subscription ID that can be retrieved with the `accountHandle` from `https://developer.android.com/reference/android/telephony/TelephonyManager#getSubscriptionId(android.telecom.PhoneAccountHandle)`.* |
| ` https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/android/telecom/PhoneAccountHandle>` | ` https://developer.android.com/reference/android/telecom/TelecomManager#getOwnSelfManagedPhoneAccounts()() ` Returns a list of `https://developer.android.com/reference/android/telecom/PhoneAccountHandle`s owned by the calling self-managed `https://developer.android.com/reference/android/telecom/ConnectionService`. |
| ` https://developer.android.com/reference/android/telecom/PhoneAccount` | ` https://developer.android.com/reference/android/telecom/TelecomManager#getPhoneAccount(android.telecom.PhoneAccountHandle)(https://developer.android.com/reference/android/telecom/PhoneAccountHandle account) ` Return the `https://developer.android.com/reference/android/telecom/PhoneAccount` for a specified `https://developer.android.com/reference/android/telecom/PhoneAccountHandle`. |
| ` https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/android/telecom/PhoneAccount>` | ` https://developer.android.com/reference/android/telecom/TelecomManager#getRegisteredPhoneAccounts()() ` This API will return all `https://developer.android.com/reference/android/telecom/PhoneAccount`s the caller registered via `https://developer.android.com/reference/android/telecom/TelecomManager#registerPhoneAccount(android.telecom.PhoneAccount)`. |
| ` https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/android/telecom/PhoneAccountHandle>` | ` https://developer.android.com/reference/android/telecom/TelecomManager#getSelfManagedPhoneAccounts()() ` Returns a list of `https://developer.android.com/reference/android/telecom/PhoneAccountHandle`s for all self-managed `https://developer.android.com/reference/android/telecom/ConnectionService`s owned by the calling `https://developer.android.com/reference/android/os/UserHandle`. |
| ` https://developer.android.com/reference/android/telecom/PhoneAccountHandle` | ` https://developer.android.com/reference/android/telecom/TelecomManager#getSimCallManager()() ` Returns the current SIM call manager. |
| ` https://developer.android.com/reference/android/telecom/PhoneAccountHandle` | ` https://developer.android.com/reference/android/telecom/TelecomManager#getSimCallManagerForSubscription(int)(int subscriptionId) ` Returns current SIM call manager for the Telephony Subscription ID specified. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/telecom/TelecomManager#getSystemDialerPackage()() ` Determines the package name of the system-provided default phone app. |
| ` https://developer.android.com/reference/android/telecom/PhoneAccountHandle` | ` https://developer.android.com/reference/android/telecom/TelecomManager#getUserSelectedOutgoingPhoneAccount()() ` Return the `https://developer.android.com/reference/android/telecom/PhoneAccount` which is the user-chosen default for making outgoing phone calls. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/telecom/TelecomManager#getVoiceMailNumber(android.telecom.PhoneAccountHandle)(https://developer.android.com/reference/android/telecom/PhoneAccountHandle accountHandle) ` Return the voicemail number for a given phone account. |
| ` boolean` | ` https://developer.android.com/reference/android/telecom/TelecomManager#handleMmi(java.lang.String)(https://developer.android.com/reference/java/lang/String dialString) ` Processes the specified dial string as an MMI code. |
| ` boolean` | ` https://developer.android.com/reference/android/telecom/TelecomManager#handleMmi(java.lang.String,%20android.telecom.PhoneAccountHandle)(https://developer.android.com/reference/java/lang/String dialString, https://developer.android.com/reference/android/telecom/PhoneAccountHandle accountHandle) ` Processes the specified dial string as an MMI code. |
| ` boolean` | ` https://developer.android.com/reference/android/telecom/TelecomManager#hasManageOngoingCallsPermission()() ` Returns whether the caller has `https://developer.android.com/reference/android/Manifest.permission#MANAGE_ONGOING_CALLS` permission. |
| ` boolean` | ` https://developer.android.com/reference/android/telecom/TelecomManager#isInCall()() ` Returns whether there is an ongoing phone call (can be in dialing, ringing, active or holding states) originating from either a manager or self-managed `https://developer.android.com/reference/android/telecom/ConnectionService`. |
| ` boolean` | ` https://developer.android.com/reference/android/telecom/TelecomManager#isInExternalCall()() ` Returns whether there is an ongoing phone call (can be in dialing, ringing, active or holding states) that is an external call. |
| ` boolean` | ` https://developer.android.com/reference/android/telecom/TelecomManager#isInManagedCall()() ` Returns whether there is an ongoing call originating from a managed `https://developer.android.com/reference/android/telecom/ConnectionService`. |
| ` boolean` | ` https://developer.android.com/reference/android/telecom/TelecomManager#isIncomingCallPermitted(android.telecom.PhoneAccountHandle)(https://developer.android.com/reference/android/telecom/PhoneAccountHandle phoneAccountHandle) ` Determines whether Telecom would permit an incoming call to be added via the `https://developer.android.com/reference/android/telecom/TelecomManager#addNewIncomingCall(android.telecom.PhoneAccountHandle,%20android.os.Bundle)` API for the specified `https://developer.android.com/reference/android/telecom/PhoneAccountHandle`. |
| ` boolean` | ` https://developer.android.com/reference/android/telecom/TelecomManager#isOutgoingCallPermitted(android.telecom.PhoneAccountHandle)(https://developer.android.com/reference/android/telecom/PhoneAccountHandle phoneAccountHandle) ` Determines whether Telecom would permit an outgoing call to be placed via the `https://developer.android.com/reference/android/telecom/TelecomManager#placeCall(android.net.Uri,%20android.os.Bundle)` API for the specified `https://developer.android.com/reference/android/telecom/PhoneAccountHandle`. |
| ` boolean` | ` https://developer.android.com/reference/android/telecom/TelecomManager#isTtySupported()() ` Returns whether TTY is supported on this device. |
| ` boolean` | ` https://developer.android.com/reference/android/telecom/TelecomManager#isVoiceMailNumber(android.telecom.PhoneAccountHandle,%20java.lang.String)(https://developer.android.com/reference/android/telecom/PhoneAccountHandle accountHandle, https://developer.android.com/reference/java/lang/String number) ` Return whether a given phone number is the configured voicemail number for a particular phone account. |
| ` void` | ` https://developer.android.com/reference/android/telecom/TelecomManager#placeCall(android.net.Uri,%20android.os.Bundle)(https://developer.android.com/reference/android/net/Uri address, https://developer.android.com/reference/android/os/Bundle extras) ` Places a new outgoing call to the provided address using the system telecom service with the specified extras. |
| ` void` | ` https://developer.android.com/reference/android/telecom/TelecomManager#registerPhoneAccount(android.telecom.PhoneAccount)(https://developer.android.com/reference/android/telecom/PhoneAccount account) ` Register a `https://developer.android.com/reference/android/telecom/PhoneAccount` for use by the system that will be stored in Device Encrypted storage. |
| ` void` | ` https://developer.android.com/reference/android/telecom/TelecomManager#showInCallScreen(boolean)(boolean showDialpad) ` Brings the in-call screen to the foreground if there is an ongoing call. |
| ` void` | ` https://developer.android.com/reference/android/telecom/TelecomManager#silenceRinger()() ` Silences the ringer if a ringing call exists. |
| ` void` | ` https://developer.android.com/reference/android/telecom/TelecomManager#startConference(java.util.List<android.net.Uri>,%20android.os.Bundle)(https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/android/net/Uri> participants, https://developer.android.com/reference/android/os/Bundle extras) ` Place a new adhoc conference call with the provided participants using the system telecom service. |
| ` void` | ` https://developer.android.com/reference/android/telecom/TelecomManager#unregisterPhoneAccount(android.telecom.PhoneAccountHandle)(https://developer.android.com/reference/android/telecom/PhoneAccountHandle accountHandle) ` Remove a `https://developer.android.com/reference/android/telecom/PhoneAccount` registration from the system. |

### Inherited methods

From class `

https://developer.android.com/reference/java/lang/Object

` `


https://developer.android.com/reference/java/lang/Object` `
https://developer.android.com/reference/java/lang/Object#clone()()
`

Creates and returns a copy of this object.


`


boolean` `
https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj)
`

Indicates whether some other object is "equal to" this one.


`


void` `
https://developer.android.com/reference/java/lang/Object#finalize()()
`

Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.


`


final

https://developer.android.com/reference/java/lang/Class<?>` `
https://developer.android.com/reference/java/lang/Object#getClass()()
`

Returns the runtime class of this `Object`.


`


int` `
https://developer.android.com/reference/java/lang/Object#hashCode()()
`

Returns a hash code value for the object.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#notify()()
`

Wakes up a single thread that is waiting on this object's
monitor.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#notifyAll()()
`

Wakes up all threads that are waiting on this object's monitor.


`


https://developer.android.com/reference/java/lang/String` `
https://developer.android.com/reference/java/lang/Object#toString()()
`

Returns a string representation of the object.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos)
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*, or until a
certain amount of real time has elapsed.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis)
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*, or until a
certain amount of real time has elapsed.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#wait()()
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*.


## Constants

### ACTION_CALL_BACK

Added in [version 36.1](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final String ACTION_CALL_BACK
```

Activity action: Triggers the calling UI and initiates a call back to a previous call
made by the application. The specific call to be re-called is identified by the UUID,
which must be included as an extra in the intent using `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_UUID`


Note: VoIP apps should register the intent if they need to integrate the call history
into the system call logs.

<br />

<br />

Constant Value:

"android.telecom.action.CALL_BACK"


### ACTION_CHANGE_DEFAULT_DIALER

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String ACTION_CHANGE_DEFAULT_DIALER
```

Activity action: Shows a dialog asking the user whether or not they want to replace the
current default Dialer with the one specified in
`https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_CHANGE_DEFAULT_DIALER_PACKAGE_NAME`.

Usage example:

```
Intent intent = new Intent(TelecomManager.ACTION_CHANGE_DEFAULT_DIALER);
intent.putExtra(TelecomManager.EXTRA_CHANGE_DEFAULT_DIALER_PACKAGE_NAME,
        getActivity().getPackageName());
startActivity(intent);
```


This is no longer supported since Q, please use
`https://developer.android.com/reference/android/app/role/RoleManager#createRequestRoleIntent(java.lang.String)` with
`https://developer.android.com/reference/android/app/role/RoleManager#ROLE_DIALER` instead.

<br />

Constant Value:

"android.telecom.action.CHANGE_DEFAULT_DIALER"


### ACTION_CHANGE_PHONE_ACCOUNTS

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String ACTION_CHANGE_PHONE_ACCOUNTS
```

The `https://developer.android.com/reference/android/content/Intent` action used to show the settings page used to configure
`https://developer.android.com/reference/android/telecom/PhoneAccount` preferences.

<br />

Constant Value:

"android.telecom.action.CHANGE_PHONE_ACCOUNTS"


### ACTION_CONFIGURE_CALL_LOG_INTEGRATION

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String ACTION_CONFIGURE_CALL_LOG_INTEGRATION
```

Activity Action: Show the settings for configuring call log integration.


This activity allows the user to view and turn off/on the system call logs
for available VoIP applications that have integrated with the system's
call log.


This activity must be present on a device that supports call log integration.

<br />

Constant Value:

"android.telecom.action.CONFIGURE_CALL_LOG_INTEGRATION"


### ACTION_CONFIGURE_PHONE_ACCOUNT

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String ACTION_CONFIGURE_PHONE_ACCOUNT
```

An `https://developer.android.com/reference/android/content/Intent` action sent by the telecom framework to start a
configuration dialog for a registered `https://developer.android.com/reference/android/telecom/PhoneAccount`. There is no default dialog
and each app that registers a `https://developer.android.com/reference/android/telecom/PhoneAccount` should provide one if desired.


A user can access the list of enabled `https://developer.android.com/reference/android/telecom/PhoneAccount`s through the Phone
app's settings menu. For each entry, the settings app will add a click action. When
triggered, the click-action will start this intent along with the extra
`https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_PHONE_ACCOUNT_HANDLE` to indicate the `https://developer.android.com/reference/android/telecom/PhoneAccount` to configure. If the
`https://developer.android.com/reference/android/telecom/PhoneAccount` package does not register an `https://developer.android.com/reference/android/app/Activity` for this
intent, then it will not be sent.

<br />

Constant Value:

"android.telecom.action.CONFIGURE_PHONE_ACCOUNT"


### ACTION_DEFAULT_CALL_SCREENING_APP_CHANGED

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String ACTION_DEFAULT_CALL_SCREENING_APP_CHANGED
```

Broadcast intent action indicating that the current default call screening app has changed.


Note: This intent is NEVER actually broadcast and will be deprecated in the future.


An app that want to know if it holds the
`https://developer.android.com/reference/android/app/role/RoleManager#ROLE_CALL_SCREENING` role can use
`https://developer.android.com/reference/android/app/role/RoleManager#isRoleHeld(java.lang.String)` to confirm if it holds the role or
not.

<br />

Constant Value:

"android.telecom.action.DEFAULT_CALL_SCREENING_APP_CHANGED"


### ACTION_DEFAULT_DIALER_CHANGED

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String ACTION_DEFAULT_DIALER_CHANGED
```

Broadcast intent action indicating that the current default dialer has changed.
The string extra `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_CHANGE_DEFAULT_DIALER_PACKAGE_NAME` will contain the
name of the package that the default dialer was changed to.

<br />

**See also:**

- `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_CHANGE_DEFAULT_DIALER_PACKAGE_NAME`

Constant Value:

"android.telecom.action.DEFAULT_DIALER_CHANGED"


### ACTION_INCOMING_CALL

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level
26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String ACTION_INCOMING_CALL
```


**This constant was deprecated
in API level 26.**   

Use `https://developer.android.com/reference/android/telecom/TelecomManager#addNewIncomingCall(android.telecom.PhoneAccountHandle,%20android.os.Bundle)` instead.

Activity action: Starts the UI for handing an incoming call. This intent starts the in-call
UI by notifying the Telecom system that an incoming call exists for a specific call service
(see `https://developer.android.com/reference/android/telecom/ConnectionService`). Telecom reads the Intent extras to find
and bind to the appropriate `https://developer.android.com/reference/android/telecom/ConnectionService` which Telecom will
ultimately use to control and get information about the call.


Input: get\*Extra field `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_PHONE_ACCOUNT_HANDLE` contains the component name of the
`https://developer.android.com/reference/android/telecom/ConnectionService` that Telecom should bind to. Telecom will then
ask the connection service for more information about the call prior to showing any UI.

<br />

Constant Value:

"android.telecom.action.INCOMING_CALL"


### ACTION_PHONE_ACCOUNT_REGISTERED

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String ACTION_PHONE_ACCOUNT_REGISTERED
```

`https://developer.android.com/reference/android/content/Intent` action used indicate that a new phone account was just
registered.


The Intent `https://developer.android.com/reference/android/content/Intent#getExtras()` will contain `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_PHONE_ACCOUNT_HANDLE`
to indicate which `https://developer.android.com/reference/android/telecom/PhoneAccount` was registered.


Will only be sent to the default dialer app (see `https://developer.android.com/reference/android/telecom/TelecomManager#getDefaultDialerPackage()`).

<br />

Constant Value:

"android.telecom.action.PHONE_ACCOUNT_REGISTERED"


### ACTION_PHONE_ACCOUNT_UNREGISTERED

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String ACTION_PHONE_ACCOUNT_UNREGISTERED
```

`https://developer.android.com/reference/android/content/Intent` action used indicate that a phone account was just
unregistered.


The Intent `https://developer.android.com/reference/android/content/Intent#getExtras()` will contain `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_PHONE_ACCOUNT_HANDLE`
to indicate which `https://developer.android.com/reference/android/telecom/PhoneAccount` was unregistered.


Will only be sent to the default dialer app (see `https://developer.android.com/reference/android/telecom/TelecomManager#getDefaultDialerPackage()`).

<br />

Constant Value:

"android.telecom.action.PHONE_ACCOUNT_UNREGISTERED"


### ACTION_POST_CALL

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String ACTION_POST_CALL
```

Start an activity indicating that the completion of an outgoing call or an incoming call
which was not blocked by the `https://developer.android.com/reference/android/telecom/CallScreeningService`, and which was NOT terminated
while the call was in `https://developer.android.com/reference/android/telecom/Call#STATE_AUDIO_PROCESSING`.

The `https://developer.android.com/reference/android/net/Uri` extra `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_HANDLE` will contain the uri handle(phone number) for the
call which completed.

The integer extra `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_DISCONNECT_CAUSE` will indicate the reason for the call
disconnection. See `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_DISCONNECT_CAUSE` for more information.

The integer extra `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_CALL_DURATION` will indicate the duration of the call. See
`https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_CALL_DURATION` for more information.

<br />

Constant Value:

"android.telecom.action.POST_CALL"


### ACTION_SHOW_CALL_ACCESSIBILITY_SETTINGS

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String ACTION_SHOW_CALL_ACCESSIBILITY_SETTINGS
```

The `https://developer.android.com/reference/android/content/Intent` action used to show the call accessibility settings page.

<br />

Constant Value:

"android.telecom.action.SHOW_CALL_ACCESSIBILITY_SETTINGS"


### ACTION_SHOW_CALL_SETTINGS

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String ACTION_SHOW_CALL_SETTINGS
```

The `https://developer.android.com/reference/android/content/Intent` action used to show the call settings page.

<br />

Constant Value:

"android.telecom.action.SHOW_CALL_SETTINGS"


### ACTION_SHOW_MISSED_CALLS_NOTIFICATION

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String ACTION_SHOW_MISSED_CALLS_NOTIFICATION
```

Broadcast intent action for letting custom component know to show the missed call
notification. If no custom component exists then this is sent to the default dialer which
should post a missed-call notification.

<br />

Constant Value:

"android.telecom.action.SHOW_MISSED_CALLS_NOTIFICATION"


### ACTION_SHOW_RESPOND_VIA_SMS_SETTINGS

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String ACTION_SHOW_RESPOND_VIA_SMS_SETTINGS
```

The `https://developer.android.com/reference/android/content/Intent` action used to show the respond via SMS settings page.

<br />

Constant Value:

"android.telecom.action.SHOW_RESPOND_VIA_SMS_SETTINGS"


### ACTION_VOIP_CALL_LOG_PREFERENCE

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String ACTION_VOIP_CALL_LOG_PREFERENCE
```

Broadcast intent action indicating that the call log preference is updated
by the user.

The intent is sent to VoIP applications whose preferences have been affected
by the user's choice. Upon receiving this broadcast, the application may
re-evaluate its behavior regarding call log entries.

To receive this broadcast, applications must declare a receiver in
their manifest file with an intent filter for this action.

<br />

Constant Value:

"android.telecom.action.VOIP_CALL_LOG_PREFERENCE"


### DTMF_CHARACTER_PAUSE

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final char DTMF_CHARACTER_PAUSE
```

The dual tone multi-frequency signaling character sent to indicate the dialing system should
pause for a predefined period.

<br />

Constant Value:

44
(0x0000002c)


### DTMF_CHARACTER_WAIT

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final char DTMF_CHARACTER_WAIT
```

The dual-tone multi-frequency signaling character sent to indicate the dialing system should
wait for user confirmation before proceeding.

<br />

Constant Value:

59
(0x0000003b)


### DURATION_LONG

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int DURATION_LONG
```

A integer value for `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_CALL_DURATION`, indicates the duration of the completed
call was \>= 120 seconds.

<br />

Constant Value:

3
(0x00000003)


### DURATION_MEDIUM

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int DURATION_MEDIUM
```

A integer value for `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_CALL_DURATION`, indicates the duration of the completed
call was \>= 60 seconds and \< 120 seconds.

<br />

Constant Value:

2
(0x00000002)


### DURATION_SHORT

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int DURATION_SHORT
```

A integer value for `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_CALL_DURATION`, indicates the duration of the completed
call was \>= 3 seconds and \< 60 seconds.

<br />

Constant Value:

1
(0x00000001)


### DURATION_VERY_SHORT

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int DURATION_VERY_SHORT
```

A integer value for `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_CALL_DURATION`, indicates the duration of the completed
call was \< 3 seconds.

<br />

Constant Value:

0
(0x00000000)


### EXTRA_CALL_BACK_NUMBER

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EXTRA_CALL_BACK_NUMBER
```

The number which the party on the other side of the line will see (and use to return the
call).


`https://developer.android.com/reference/android/telecom/ConnectionService`s which interact with `https://developer.android.com/reference/android/telecom/RemoteConnection`s should only populate
this if the `https://developer.android.com/reference/android/telephony/TelephonyManager#getLine1Number()` value, as that is the
user's expected caller ID.

<br />

Constant Value:

"android.telecom.extra.CALL_BACK_NUMBER"


### EXTRA_CALL_DISCONNECT_CAUSE

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EXTRA_CALL_DISCONNECT_CAUSE
```

Optional extra for `https://developer.android.com/reference/android/telephony/TelephonyManager#ACTION_PHONE_STATE_CHANGED`
containing the disconnect code.

<br />

Constant Value:

"android.telecom.extra.CALL_DISCONNECT_CAUSE"


### EXTRA_CALL_DISCONNECT_MESSAGE

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EXTRA_CALL_DISCONNECT_MESSAGE
```

Optional extra for `https://developer.android.com/reference/android/telephony/TelephonyManager#ACTION_PHONE_STATE_CHANGED`
containing the disconnect message.

<br />

Constant Value:

"android.telecom.extra.CALL_DISCONNECT_MESSAGE"


### EXTRA_CALL_DURATION

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EXTRA_CALL_DURATION
```

A integer value provided for completed calls to indicate the duration of the call.


Allowed values:

- `https://developer.android.com/reference/android/telecom/TelecomManager#DURATION_VERY_SHORT`
- `https://developer.android.com/reference/android/telecom/TelecomManager#DURATION_SHORT`
- `https://developer.android.com/reference/android/telecom/TelecomManager#DURATION_MEDIUM`
- `https://developer.android.com/reference/android/telecom/TelecomManager#DURATION_LONG`

<br />

<br />

<br />

Constant Value:

"android.telecom.extra.CALL_DURATION"


### EXTRA_CALL_LOG_URI

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EXTRA_CALL_LOG_URI
```

Extra URI that is used by a dialer to query the `https://developer.android.com/reference/android/provider/CallLog` content
provider and associate a missed call notification with a call log entry.

<br />

Constant Value:

"android.telecom.extra.CALL_LOG_URI"


### EXTRA_CALL_NETWORK_TYPE

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EXTRA_CALL_NETWORK_TYPE
```

Optional extra for communicating the call network technology used by a
`https://developer.android.com/reference/android/telecom/Connection` to Telecom and InCallUI.

`NETWORK_TYPE_*` in `https://developer.android.com/reference/android/telephony/TelephonyManager`.

<br />

Constant Value:

"android.telecom.extra.CALL_NETWORK_TYPE"


### EXTRA_CALL_SUBJECT

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EXTRA_CALL_SUBJECT
```

Optional extra for `https://developer.android.com/reference/android/content/Intent#ACTION_CALL` containing a string call
subject which will be associated with an outgoing call. Should only be specified if the
`https://developer.android.com/reference/android/telecom/PhoneAccount` supports the capability `https://developer.android.com/reference/android/telecom/PhoneAccount#CAPABILITY_CALL_SUBJECT`
or `https://developer.android.com/reference/android/telecom/PhoneAccount#CAPABILITY_CALL_COMPOSER`.

<br />

Constant Value:

"android.telecom.extra.CALL_SUBJECT"


### EXTRA_CALL_TYPE

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EXTRA_CALL_TYPE
```

An optional `https://developer.android.com/reference/android/content/Intent` extra used with `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_CALL_BACK` to specify
the desired call type for the callback.

The value must be one of `https://developer.android.com/reference/android/telecom/CallAttributes#AUDIO_CALL`,
`https://developer.android.com/reference/android/telecom/CallAttributes#VIDEO_CALL`, or
`https://developer.android.com/reference/android/telecom/CallAttributes#MESSAGING`.

Type: int

When an application receives an `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_CALL_BACK` intent, it should check
for this extra. If present, the application should attempt to initiate the callback
using the specified call type. If this extra is not provided, the application should
default to using the original call type associated with the call.

The initiating Dialer app must confirm whether the desired call type is supported by the
target application before specifying this extra. Not all apps will support all callback
types and it is the caller's responsibility to validate this.

<br />

<br />

Constant Value:

"android.telecom.extra.CALL_TYPE"


### EXTRA_CHANGE_DEFAULT_DIALER_PACKAGE_NAME

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EXTRA_CHANGE_DEFAULT_DIALER_PACKAGE_NAME
```

Extra value used to provide the package name for `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_CHANGE_DEFAULT_DIALER`.

<br />

Constant Value:

"android.telecom.extra.CHANGE_DEFAULT_DIALER_PACKAGE_NAME"


### EXTRA_DEFAULT_CALL_SCREENING_APP_COMPONENT_NAME

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EXTRA_DEFAULT_CALL_SCREENING_APP_COMPONENT_NAME
```

Extra value used with `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_DEFAULT_CALL_SCREENING_APP_CHANGED` broadcast to
indicate the ComponentName of the call screening app which has changed.


Note: This extra is NOT used and will be deprecated in the future.

<br />

Constant Value:

"android.telecom.extra.DEFAULT_CALL_SCREENING_APP_COMPONENT_NAME"


### EXTRA_DISCONNECT_CAUSE

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EXTRA_DISCONNECT_CAUSE
```

A integer value provided for completed calls to indicate the reason for the call
disconnection.


Allowed values:

- `https://developer.android.com/reference/android/telecom/DisconnectCause#UNKNOWN`
- `https://developer.android.com/reference/android/telecom/DisconnectCause#LOCAL`
- `https://developer.android.com/reference/android/telecom/DisconnectCause#REMOTE`
- `https://developer.android.com/reference/android/telecom/DisconnectCause#REJECTED`
- `https://developer.android.com/reference/android/telecom/DisconnectCause#MISSED`

<br />

<br />

<br />

Constant Value:

"android.telecom.extra.DISCONNECT_CAUSE"


### EXTRA_HANDLE

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EXTRA_HANDLE
```

A `https://developer.android.com/reference/android/net/Uri` extra, which when set on the `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_POST_CALL` intent, indicates the
uri handle(phone number) of the completed call.

<br />

Constant Value:

"android.telecom.extra.HANDLE"


### EXTRA_HAS_PICTURE

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EXTRA_HAS_PICTURE
```

A boolean extra set on incoming calls to indicate that the call has a picture specified.
Given that image download could take a (short) time, the EXTRA is set immediately upon
adding the call to the Dialer app, this allows the Dialer app to reserve space for an image
if one is expected. The EXTRA may be unset if the image download ends up failing for some
reason.

<br />

Constant Value:

"android.telecom.extra.HAS_PICTURE"


### EXTRA_INCOMING_CALL_ADDRESS

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EXTRA_INCOMING_CALL_ADDRESS
```

The extra used by a `https://developer.android.com/reference/android/telecom/ConnectionService` to provide the handle of the caller that
has initiated a new incoming call.

<br />

Constant Value:

"android.telecom.extra.INCOMING_CALL_ADDRESS"


### EXTRA_INCOMING_CALL_EXTRAS

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EXTRA_INCOMING_CALL_EXTRAS
```

Optional extra for `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_INCOMING_CALL` containing a `https://developer.android.com/reference/android/os/Bundle` which contains
metadata about the call. This `https://developer.android.com/reference/android/os/Bundle` will be returned to the
`https://developer.android.com/reference/android/telecom/ConnectionService`.

<br />

Constant Value:

"android.telecom.extra.INCOMING_CALL_EXTRAS"


### EXTRA_INCOMING_VIDEO_STATE

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EXTRA_INCOMING_VIDEO_STATE
```

Optional extra for `https://developer.android.com/reference/android/telecom/TelecomManager#addNewIncomingCall(android.telecom.PhoneAccountHandle,%20android.os.Bundle)` containing an
integer that determines the requested video state for an incoming call.
Valid options:
`https://developer.android.com/reference/android/telecom/VideoProfile#STATE_AUDIO_ONLY`,
`https://developer.android.com/reference/android/telecom/VideoProfile#STATE_BIDIRECTIONAL`,
`https://developer.android.com/reference/android/telecom/VideoProfile#STATE_RX_ENABLED`,
`https://developer.android.com/reference/android/telecom/VideoProfile#STATE_TX_ENABLED`.

<br />

Constant Value:

"android.telecom.extra.INCOMING_VIDEO_STATE"


### EXTRA_IS_DEFAULT_CALL_SCREENING_APP

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EXTRA_IS_DEFAULT_CALL_SCREENING_APP
```

Extra value used with `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_DEFAULT_CALL_SCREENING_APP_CHANGED` broadcast to
indicate whether an app is the default call screening app.


Note: This extra is NOT used and will be deprecated in the future.

<br />

Constant Value:

"android.telecom.extra.IS_DEFAULT_CALL_SCREENING_APP"


### EXTRA_LOCATION

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EXTRA_LOCATION
```

Extra for the call composer call location, an `https://developer.android.com/reference/android/location/Location` parcelable
class to represent the geolocation as a latitude and longitude pair.

Reference: RCC.20 Section 2.4.3.2

<br />

Constant Value:

"android.telecom.extra.LOCATION"


### EXTRA_NOTIFICATION_COUNT

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EXTRA_NOTIFICATION_COUNT
```

The number of calls associated with the notification. If the number is zero then the missed
call notification should be dismissed.

<br />

Constant Value:

"android.telecom.extra.NOTIFICATION_COUNT"


### EXTRA_NOTIFICATION_MISSED_REASON

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final String EXTRA_NOTIFICATION_MISSED_REASON
```

Extra indicating the reason why the call was missed.
Passed as a long extra in `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_SHOW_MISSED_CALLS_NOTIFICATION`.


Value is one of the following:

- `https://developer.android.com/reference/android/provider/CallLog.Calls#AUTO_MISSED_EMERGENCY_CALL`
- `https://developer.android.com/reference/android/provider/CallLog.Calls#AUTO_MISSED_MAXIMUM_RINGING`
- `https://developer.android.com/reference/android/provider/CallLog.Calls#AUTO_MISSED_MAXIMUM_DIALING`
- `https://developer.android.com/reference/android/provider/CallLog.Calls#AUTO_MISSED_UNWANTED`
- `https://developer.android.com/reference/android/provider/CallLog.Calls#USER_MISSED_NO_ANSWER`
- `https://developer.android.com/reference/android/provider/CallLog.Calls#USER_MISSED_SHORT_RING`
- `https://developer.android.com/reference/android/provider/CallLog.Calls#USER_MISSED_DND_MODE`
- `https://developer.android.com/reference/android/provider/CallLog.Calls#USER_MISSED_LOW_RING_VOLUME`
- `https://developer.android.com/reference/android/provider/CallLog.Calls#USER_MISSED_NO_VIBRATE`
- `https://developer.android.com/reference/android/provider/CallLog.Calls#USER_MISSED_CALL_SCREENING_SERVICE_SILENCED`
- `https://developer.android.com/reference/android/provider/CallLog.Calls#USER_MISSED_CALL_FILTERS_TIMEOUT`
  - Constant Value: "android.telecom.extra.NOTIFICATION_MISSED_REASON"

### EXTRA_NOTIFICATION_PHONE_NUMBER

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EXTRA_NOTIFICATION_PHONE_NUMBER
```

The number associated with the missed calls. This number is only relevant
when EXTRA_NOTIFICATION_COUNT is 1.

<br />

Constant Value:

"android.telecom.extra.NOTIFICATION_PHONE_NUMBER"


### EXTRA_OUTGOING_CALL_EXTRAS

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EXTRA_OUTGOING_CALL_EXTRAS
```

Optional extra for `https://developer.android.com/reference/android/content/Intent#ACTION_CALL` and
`https://developer.android.com/reference/android/content/Intent#ACTION_DIAL` `Intent` containing a `https://developer.android.com/reference/android/os/Bundle`
which contains metadata about the call. This `https://developer.android.com/reference/android/os/Bundle` will be saved into
`Call.Details` and passed to the `https://developer.android.com/reference/android/telecom/ConnectionService` when placing the call.

<br />

Constant Value:

"android.telecom.extra.OUTGOING_CALL_EXTRAS"


### EXTRA_OUTGOING_PICTURE

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EXTRA_OUTGOING_PICTURE
```

A ParcelUuid used as a token to represent a picture that was uploaded prior to the call
being placed. The value of this extra should be set using the `https://developer.android.com/reference/android/os/ParcelUuid`
obtained from the callback in `https://developer.android.com/reference/android/telephony/TelephonyManager#uploadCallComposerPicture(java.io.InputStream,%20java.lang.String,%20java.util.concurrent.Executor,%20android.os.OutcomeReceiver<android.os.ParcelUuid,android.telephony.TelephonyManager.CallComposerException>)`.

<br />

Constant Value:

"android.telecom.extra.OUTGOING_PICTURE"


### EXTRA_PHONE_ACCOUNT_HANDLE

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EXTRA_PHONE_ACCOUNT_HANDLE
```

The extra used with an `https://developer.android.com/reference/android/content/Intent#ACTION_CALL` and
`https://developer.android.com/reference/android/content/Intent#ACTION_DIAL` `Intent` to specify a
`https://developer.android.com/reference/android/telecom/PhoneAccountHandle` to use when making the call.


Retrieve with `https://developer.android.com/reference/android/content/Intent#getParcelableExtra(java.lang.String)`.

<br />

Constant Value:

"android.telecom.extra.PHONE_ACCOUNT_HANDLE"


### EXTRA_PICTURE_URI

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EXTRA_PICTURE_URI
```

A `https://developer.android.com/reference/android/net/Uri` representing the picture that was downloaded when a call is received or
uploaded when a call is placed.

This is a content URI within the call log provider which can be used to open a file
descriptor. This could be set a short time after a call is added to the Dialer app if the
download/upload is delayed for some reason. The Dialer app will receive a callback via
`https://developer.android.com/reference/android/telecom/Call.Callback#onDetailsChanged(android.telecom.Call,%20android.telecom.Call.Details)` when this value has changed.

Reference: RCC.20 Section 2.4.3.2

<br />

Constant Value:

"android.telecom.extra.PICTURE_URI"


### EXTRA_PRIORITY

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EXTRA_PRIORITY
```

Extra for the call composer call priority, either `https://developer.android.com/reference/android/telecom/TelecomManager#PRIORITY_NORMAL` or
`https://developer.android.com/reference/android/telecom/TelecomManager#PRIORITY_URGENT`.

Reference: RCC.20 Section 2.4.4.2

<br />

Constant Value:

"android.telecom.extra.PRIORITY"


### EXTRA_START_CALL_WITH_RTT

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EXTRA_START_CALL_WITH_RTT
```

A boolean extra, which when set on the `https://developer.android.com/reference/android/content/Intent#ACTION_CALL` intent or on the bundle
passed into `https://developer.android.com/reference/android/telecom/TelecomManager#placeCall(android.net.Uri,%20android.os.Bundle)`, indicates that the call should be initiated with
an RTT session open. See `https://developer.android.com/reference/android/telecom/Call.RttCall` for more information on RTT.

<br />

Constant Value:

"android.telecom.extra.START_CALL_WITH_RTT"


### EXTRA_START_CALL_WITH_SPEAKERPHONE

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EXTRA_START_CALL_WITH_SPEAKERPHONE
```

Optional extra for `https://developer.android.com/reference/android/content/Intent#ACTION_CALL` containing a boolean that
determines whether the speakerphone should be automatically turned on for an outgoing call.

<br />

Constant Value:

"android.telecom.extra.START_CALL_WITH_SPEAKERPHONE"


### EXTRA_START_CALL_WITH_VIDEO_STATE

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EXTRA_START_CALL_WITH_VIDEO_STATE
```

Optional extra for `https://developer.android.com/reference/android/content/Intent#ACTION_CALL` containing an integer that
determines the desired video state for an outgoing call.
Valid options:
`https://developer.android.com/reference/android/telecom/VideoProfile#STATE_AUDIO_ONLY`,
`https://developer.android.com/reference/android/telecom/VideoProfile#STATE_BIDIRECTIONAL`,
`https://developer.android.com/reference/android/telecom/VideoProfile#STATE_RX_ENABLED`,
`https://developer.android.com/reference/android/telecom/VideoProfile#STATE_TX_ENABLED`.

<br />

Constant Value:

"android.telecom.extra.START_CALL_WITH_VIDEO_STATE"


### EXTRA_USE_ASSISTED_DIALING

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EXTRA_USE_ASSISTED_DIALING
```

The boolean indicated by this extra controls whether or not a call is eligible to undergo
assisted dialing. This extra is stored under `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_OUTGOING_CALL_EXTRAS`.


The call initiator can use this extra to indicate that a call used assisted dialing to help
place the call. This is most commonly used by a Dialer app which provides the ability to
automatically add dialing prefixes when placing international calls.


Setting this extra on the outgoing call extras will cause the
`https://developer.android.com/reference/android/telecom/Connection#PROPERTY_ASSISTED_DIALING` property and
`https://developer.android.com/reference/android/telecom/Call.Details#PROPERTY_ASSISTED_DIALING` property to be set on the
`https://developer.android.com/reference/android/telecom/Connection`/`https://developer.android.com/reference/android/telecom/Call` in question. When the call is logged to the call log, the
`https://developer.android.com/reference/android/provider/CallLog.Calls#FEATURES_ASSISTED_DIALING_USED` call feature is set to
indicate that assisted dialing was used for the call.

<br />

Constant Value:

"android.telecom.extra.USE_ASSISTED_DIALING"


### EXTRA_UUID

Added in [version 36.1](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final String EXTRA_UUID
```

Extra used with `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_CALL_BACK` to specify the UUID value representing
the call ID returned by `https://developer.android.com/reference/android/telecom/CallControl#getCallId()`.

This extra is required when using `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_CALL_BACK` to initiate a callback
to a specific call.

Type: String

Applications that support the `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_CALL_BACK` intent should obtain
the UUID value by calling `https://developer.android.com/reference/android/telecom/CallControl#getCallId()` during
the initial call and persist this UUID along with other call-related information.
When receiving the UUID via the `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_CALL_BACK` intent, the application
should retrieve the corresponding call information using the provided UUID and
initiate a new call using the stored details.

<br />

<br />

Constant Value:

"android.telecom.extra.UUID"


### EXTRA_VOIP_CALL_LOG_PREFERENCE_STATUS

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EXTRA_VOIP_CALL_LOG_PREFERENCE_STATUS
```

Extra used with `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_VOIP_CALL_LOG_PREFERENCE` to specify the value of the
VoIP call log preference for the app receiving the broadcast.

This extra is required when using `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_VOIP_CALL_LOG_PREFERENCE` to signal
what the preference for an app was changed to.

Type: boolean

Applications that support the `https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_VOIP_CALL_LOG_PREFERENCE` will receive
broadcast updates for their app when the VoIP call log preference changes. They can use this
to determine if their VoIP call log will be logged to the system call log so that caching
mechanisms to store call information can be conditionally enforced.

<br />

<br />

Constant Value:

"android.telecom.extra.VOIP_CALL_LOG_PREFERENCE_STATUS"


### GATEWAY_ORIGINAL_ADDRESS

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String GATEWAY_ORIGINAL_ADDRESS
```

An optional `https://developer.android.com/reference/android/content/Intent#ACTION_CALL` intent extra corresponding to the
original address to dial for the call. This is used when an alternative gateway address is
provided to recall the original address.
The value is a `https://developer.android.com/reference/android/net/Uri`.

(See `https://developer.android.com/reference/android/telecom/TelecomManager#GATEWAY_PROVIDER_PACKAGE` for details)

<br />

Constant Value:

"android.telecom.extra.GATEWAY_ORIGINAL_ADDRESS"


### GATEWAY_PROVIDER_PACKAGE

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String GATEWAY_PROVIDER_PACKAGE
```

An optional `https://developer.android.com/reference/android/content/Intent#ACTION_CALL` intent extra denoting the
package name of the app specifying an alternative gateway for the call.
The value is a string.

(The following comment corresponds to the all GATEWAY_\* extras)
An app which sends the `https://developer.android.com/reference/android/content/Intent#ACTION_CALL` intent can specify an
alternative address to dial which is different from the one specified and displayed to
the user. This alternative address is referred to as the gateway address.

<br />

Constant Value:

"android.telecom.extra.GATEWAY_PROVIDER_PACKAGE"


### METADATA_INCLUDE_EXTERNAL_CALLS

Added in [API level 25](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String METADATA_INCLUDE_EXTERNAL_CALLS
```

A boolean meta-data value indicating whether an `https://developer.android.com/reference/android/telecom/InCallService` wants to be informed of
calls which have the `https://developer.android.com/reference/android/telecom/Call.Details#PROPERTY_IS_EXTERNAL_CALL` property. An external
call is one which a `https://developer.android.com/reference/android/telecom/ConnectionService` knows about, but is not connected to directly.
Dialer implementations (see `https://developer.android.com/reference/android/telecom/TelecomManager#getDefaultDialerPackage()`) which would like to be
informed of external calls should set this meta-data to `true` in the manifest
registration of their `https://developer.android.com/reference/android/telecom/InCallService`. By default, the `https://developer.android.com/reference/android/telecom/InCallService` will NOT
be informed of external calls.

<br />

Constant Value:

"android.telecom.INCLUDE_EXTERNAL_CALLS"


### METADATA_INCLUDE_SELF_MANAGED_CALLS

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String METADATA_INCLUDE_SELF_MANAGED_CALLS
```

A boolean meta-data value indicating whether an `https://developer.android.com/reference/android/telecom/InCallService` wants to be informed of
calls which have the `https://developer.android.com/reference/android/telecom/Call.Details#PROPERTY_SELF_MANAGED` property. A self-managed
call is one which originates from a self-managed `https://developer.android.com/reference/android/telecom/ConnectionService` which has chosen
to implement its own call user interface. An `https://developer.android.com/reference/android/telecom/InCallService` implementation which
would like to be informed of external calls should set this meta-data to `true` in the
manifest registration of their `https://developer.android.com/reference/android/telecom/InCallService`. By default, the `https://developer.android.com/reference/android/telecom/InCallService`
will NOT be informed about self-managed calls.


An `https://developer.android.com/reference/android/telecom/InCallService` which receives self-managed calls is free to view and control the
state of calls in the self-managed `https://developer.android.com/reference/android/telecom/ConnectionService`. An example use-case is
exposing these calls to an automotive device via its companion app.


See also `https://developer.android.com/reference/android/telecom/Connection#PROPERTY_SELF_MANAGED`.

<br />

Constant Value:

"android.telecom.INCLUDE_SELF_MANAGED_CALLS"


### METADATA_IN_CALL_SERVICE_CAR_MODE_UI

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String METADATA_IN_CALL_SERVICE_CAR_MODE_UI
```

A boolean meta-data value indicating whether an `https://developer.android.com/reference/android/telecom/InCallService` implements an
in-call user interface to be used while the device is in car-mode (see
`https://developer.android.com/reference/android/content/res/Configuration#UI_MODE_TYPE_CAR`).

<br />

Constant Value:

"android.telecom.IN_CALL_SERVICE_CAR_MODE_UI"


### METADATA_IN_CALL_SERVICE_RINGING

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String METADATA_IN_CALL_SERVICE_RINGING
```

A boolean meta-data value indicating whether an `https://developer.android.com/reference/android/telecom/InCallService` implements ringing.
Dialer implementations (see `https://developer.android.com/reference/android/telecom/TelecomManager#getDefaultDialerPackage()`) which would also like to
override the system provided ringing should set this meta-data to `true` in the
manifest registration of their `https://developer.android.com/reference/android/telecom/InCallService`.


When `true`, it is the `https://developer.android.com/reference/android/telecom/InCallService`'s responsibility to play a ringtone for
all incoming calls.

<br />

Constant Value:

"android.telecom.IN_CALL_SERVICE_RINGING"


### METADATA_IN_CALL_SERVICE_UI

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String METADATA_IN_CALL_SERVICE_UI
```

A boolean meta-data value indicating whether an `https://developer.android.com/reference/android/telecom/InCallService` implements an
in-call user interface. Dialer implementations (see `https://developer.android.com/reference/android/telecom/TelecomManager#getDefaultDialerPackage()`) which
would also like to replace the in-call interface should set this meta-data to `true` in
the manifest registration of their `https://developer.android.com/reference/android/telecom/InCallService`.

<br />

Constant Value:

"android.telecom.IN_CALL_SERVICE_UI"


### PRESENTATION_ALLOWED

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int PRESENTATION_ALLOWED
```

Indicates that the address or number of a call is allowed to be displayed for caller ID.

<br />

Constant Value:

1
(0x00000001)


### PRESENTATION_PAYPHONE

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int PRESENTATION_PAYPHONE
```

Indicates that the address or number of a call belongs to a pay phone.

<br />

Constant Value:

4
(0x00000004)


### PRESENTATION_RESTRICTED

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int PRESENTATION_RESTRICTED
```

Indicates that the address or number of a call is blocked by the other party.

<br />

Constant Value:

2
(0x00000002)


### PRESENTATION_UNAVAILABLE

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int PRESENTATION_UNAVAILABLE
```

Indicates that the address or number of a call is unavailable.

<br />

Constant Value:

5
(0x00000005)


### PRESENTATION_UNKNOWN

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int PRESENTATION_UNKNOWN
```

Indicates that the address or number of a call is not specified or known by the carrier.

<br />

Constant Value:

3
(0x00000003)


### PRIORITY_NORMAL

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int PRIORITY_NORMAL
```

Indicates the call composer call priority is normal.

Reference: RCC.20 Section 2.4.4.2

<br />

Constant Value:

0
(0x00000000)


### PRIORITY_URGENT

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int PRIORITY_URGENT
```

Indicates the call composer call priority is urgent.

Reference: RCC.20 Section 2.4.4.2

<br />

Constant Value:

1
(0x00000001)


## Public methods

### acceptHandover

Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void acceptHandover (Uri srcAddr, 
                int videoState, 
                PhoneAccountHandle destAcct)
```

Called by an app to indicate that it wishes to accept the handover of an ongoing call to a
`https://developer.android.com/reference/android/telecom/PhoneAccountHandle` it defines.


A call handover is the process where an ongoing call is transferred from one app (i.e.
`https://developer.android.com/reference/android/telecom/ConnectionService` to another app. The user could, for example, choose to continue a
mobile network call in a video calling app. The mobile network call via the Telephony stack
is referred to as the source of the handover, and the video calling app is referred to as the
destination.


When considering a handover scenario the *initiating* device is where a user initiated
the handover process (e.g. by calling `https://developer.android.com/reference/android/telecom/Call#handoverTo(android.telecom.PhoneAccountHandle,%20int,%20android.os.Bundle)`, and the other device is considered the *receiving*
device.


For a full discussion of the handover process and the APIs involved, see
`https://developer.android.com/reference/android/telecom/Call#handoverTo(android.telecom.PhoneAccountHandle,%20int,%20android.os.Bundle)`.


This method is called from the *receiving* side of a handover to indicate a desire to
accept the handover of an ongoing call to another `https://developer.android.com/reference/android/telecom/ConnectionService` identified by
`https://developer.android.com/reference/android/telecom/PhoneAccountHandle` destAcct. For managed `https://developer.android.com/reference/android/telecom/ConnectionService`s, the specified
`https://developer.android.com/reference/android/telecom/PhoneAccountHandle` must have been registered with `https://developer.android.com/reference/android/telecom/TelecomManager#registerPhoneAccount(android.telecom.PhoneAccount)` and
the user must have enabled the corresponding `https://developer.android.com/reference/android/telecom/PhoneAccount`. This can be checked using
`https://developer.android.com/reference/android/telecom/TelecomManager#getPhoneAccount(android.telecom.PhoneAccountHandle)`. Self-managed `https://developer.android.com/reference/android/telecom/ConnectionService`s must have
`https://developer.android.com/reference/android/Manifest.permission#MANAGE_OWN_CALLS` to handover a call to it.


Once invoked, this method will cause the system to bind to the `https://developer.android.com/reference/android/telecom/ConnectionService`
associated with the `https://developer.android.com/reference/android/telecom/PhoneAccountHandle` destAcct and call
(See `https://developer.android.com/reference/android/telecom/ConnectionService#onCreateIncomingHandoverConnection(android.telecom.PhoneAccountHandle,%20android.telecom.ConnectionRequest)`).


For a managed `https://developer.android.com/reference/android/telecom/ConnectionService`, a `https://developer.android.com/reference/java/lang/SecurityException` will be thrown if either
the `https://developer.android.com/reference/android/telecom/PhoneAccountHandle` destAcct does not correspond to a registered
`https://developer.android.com/reference/android/telecom/PhoneAccount` or the associated `https://developer.android.com/reference/android/telecom/PhoneAccount` is not currently enabled by the
user.


For a self-managed `https://developer.android.com/reference/android/telecom/ConnectionService`, a `https://developer.android.com/reference/java/lang/SecurityException` will be thrown if
the calling app does not have `https://developer.android.com/reference/android/Manifest.permission#MANAGE_OWN_CALLS`.

<br />

| Parameters ||
|---|---|
| `srcAddr` | `Uri`: The `https://developer.android.com/reference/android/net/Uri` of the ongoing call to handover to the caller\\u2019s `https://developer.android.com/reference/android/telecom/ConnectionService`. <br /> |
| `videoState` | `int`: Video state after the handover. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/telecom/VideoProfile#STATE_AUDIO_ONLY` - `https://developer.android.com/reference/android/telecom/VideoProfile#STATE_TX_ENABLED` - `https://developer.android.com/reference/android/telecom/VideoProfile#STATE_RX_ENABLED` - `https://developer.android.com/reference/android/telecom/VideoProfile#STATE_BIDIRECTIONAL` - `https://developer.android.com/reference/android/telecom/VideoProfile#STATE_PAUSED` |
| `destAcct` | `PhoneAccountHandle`: The `https://developer.android.com/reference/android/telecom/PhoneAccountHandle` registered to the calling package. <br /> |

### acceptRingingCall

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level
29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void acceptRingingCall (int videoState)
```


**This method was deprecated
in API level 29.**   

Companion apps for wearable devices should use the `https://developer.android.com/reference/android/telecom/InCallService` API
instead.

If there is a ringing incoming call, this method accepts the call on behalf of the user,
with the specified video state.


Requires `https://developer.android.com/reference/android/Manifest.permission#ANSWER_PHONE_CALLS` or `https://developer.android.com/reference/android/Manifest.permission#MODIFY_PHONE_STATE`

<br />

| Parameters ||
|---|---|
| `videoState` | `int`: The desired video state to answer the call with. <br /> |

### acceptRingingCall

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level
29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void acceptRingingCall ()
```


**This method was deprecated
in API level 29.**   

Companion apps for wearable devices should use the `https://developer.android.com/reference/android/telecom/InCallService` API
instead.

If there is a ringing incoming call, this method accepts the call on behalf of the user.

If the incoming call is a video call, the call will be answered with the same video state as
the incoming call requests. This means, for example, that an incoming call requesting
`https://developer.android.com/reference/android/telecom/VideoProfile#STATE_BIDIRECTIONAL` will be answered, accepting that state.

If the ringing incoming call is self-managed, this method will only accept the call if the
caller of this method is privileged (i.e. system, shell, or root) or system UI.


Requires `https://developer.android.com/reference/android/Manifest.permission#ANSWER_PHONE_CALLS` or `https://developer.android.com/reference/android/Manifest.permission#MODIFY_PHONE_STATE`

<br />

### addCall

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void addCall (CallAttributes callAttributes, 
                Executor executor, 
                OutcomeReceiver<CallControl, CallException> pendingControl, 
                CallControlCallback handshakes, 
                CallEventCallback events)
```

Add a call to the Android system service Telecom. This allows the system to start tracking an
incoming or outgoing call with the specified `https://developer.android.com/reference/android/telecom/CallAttributes`. Once a call is added,
a `https://developer.android.com/reference/android/app/Notification.CallStyle` notification should be posted and when the
call is ready to be disconnected, use `https://developer.android.com/reference/android/telecom/CallControl#disconnect(android.telecom.DisconnectCause,%20java.util.concurrent.Executor,%20android.os.OutcomeReceiver<java.lang.Void,android.telecom.CallException>)` which is provided by the
`pendingControl#onResult(CallControl)`.


**Call Lifecycle** : Your app is given foreground execution priority as long as you have a
valid call and are posting a `https://developer.android.com/reference/android/app/Notification.CallStyle` notification.
When your application is given foreground execution priority, your app is treated as a
foreground service. Foreground execution priority will prevent the
`https://developer.android.com/reference/android/app/ActivityManager` from killing your application when it is placed the
background. Foreground execution priority is removed from your app when all of your app's
calls terminate or your app no longer posts a valid notification.


**Note** : Only packages that register with
`https://developer.android.com/reference/android/telecom/PhoneAccount#CAPABILITY_SUPPORTS_TRANSACTIONAL_OPERATIONS`
can utilize this API. `https://developer.android.com/reference/android/telecom/PhoneAccount`s that set the capabilities
`https://developer.android.com/reference/android/telecom/PhoneAccount#CAPABILITY_SIM_SUBSCRIPTION`,
`https://developer.android.com/reference/android/telecom/PhoneAccount#CAPABILITY_CALL_PROVIDER`,
`https://developer.android.com/reference/android/telecom/PhoneAccount#CAPABILITY_CONNECTION_MANAGER`
are not supported and will cause an exception to be thrown.


**Foreground Service (FGS) Guidance:**


To maintain Telecom's temporary FGS delegation, VoIP apps must use a stable Notification ID
for the duration of the call. When transitioning from an incoming to an ongoing call, update
the existing notification in place using
`https://developer.android.com/reference/android/app/NotificationManager#notify(int,%20android.app.Notification)`
instead of canceling the previous notification.


**Usage example:**

```
 // Its up to your app on how you want to wrap the objects. One such implementation can be:
 class MyVoipCall {
   ...
     public CallControlCallEventCallback handshakes = new  CallControlCallback() {
                        ...
                       }

     public CallEventCallback events = new CallEventCallback() {
                        ...
                       }

     public MyVoipCall(String id){
         ...
     }
 }

MyVoipCall myFirstOutgoingCall = new MyVoipCall("1");

telecomManager.addCall(callAttributes,
                       Runnable::run,
                       new OutcomeReceiver() {
                             public void onResult(CallControl callControl) {
                                // The call has been added successfully. For demonstration
                                // purposes, the call is disconnected immediately ...
                                callControl.disconnect(
                                                new DisconnectCause(DisconnectCause.LOCAL) )
                             }
                          },
                          myFirstOutgoingCall.handshakes,
                          myFirstOutgoingCall.events);
```
.   
Requires `https://developer.android.com/reference/android/Manifest.permission#MANAGE_OWN_CALLS`

<br />

<br />

| Parameters ||
|---|---|
| `callAttributes` | `CallAttributes`: attributes of the new call (incoming or outgoing, address, etc.). This value cannot be `null`. <br /> |
| `executor` | `Executor`: execution context to run `https://developer.android.com/reference/android/telecom/CallControlCallback` updates on. This value cannot be `null`. Callback and listener events are dispatched through this `https://developer.android.com/reference/java/util/concurrent/Executor`, providing an easy way to control which thread is used. To dispatch events through the main thread of your application, you can use `https://developer.android.com/reference/android/content/Context#getMainExecutor()`. Otherwise, provide an `https://developer.android.com/reference/java/util/concurrent/Executor` that dispatches to an appropriate thread. <br /> |
| `pendingControl` | `OutcomeReceiver`: Receives the result of addCall transaction. Upon success, a CallControl object is provided which can be used to do things like disconnect the call that was added. This value cannot be `null`. <br /> |
| `handshakes` | `CallControlCallback`: callback that receives **actionable** updates that originate from Telecom. This value cannot be `null`. <br /> |
| `events` | `CallEventCallback`: callback that receives **non** -actionable updates that originate from Telecom. This value cannot be `null`. <br /> |

### addNewIncomingCall

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void addNewIncomingCall (PhoneAccountHandle phoneAccount, 
                Bundle extras)
```

Registers a new incoming call. A `https://developer.android.com/reference/android/telecom/ConnectionService` should invoke this method when it
has an incoming call. For managed `https://developer.android.com/reference/android/telecom/ConnectionService`s, the specified
`https://developer.android.com/reference/android/telecom/PhoneAccountHandle` must have been registered with `https://developer.android.com/reference/android/telecom/TelecomManager#registerPhoneAccount(android.telecom.PhoneAccount)` and
the user must have enabled the corresponding `https://developer.android.com/reference/android/telecom/PhoneAccount`. This can be checked using
`https://developer.android.com/reference/android/telecom/TelecomManager#getPhoneAccount(android.telecom.PhoneAccountHandle)`. Self-managed `https://developer.android.com/reference/android/telecom/ConnectionService`s must have
`https://developer.android.com/reference/android/Manifest.permission#MANAGE_OWN_CALLS` to add a new incoming call.


Specify the address associated with the incoming call using
`https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_INCOMING_CALL_ADDRESS`. If an incoming call is from an anonymous source, omit
this extra and ensure you specify a valid number presentation via
`https://developer.android.com/reference/android/telecom/Connection#setAddress(android.net.Uri,%20int)` on the `https://developer.android.com/reference/android/telecom/Connection` instance you return in
your
`https://developer.android.com/reference/android/telecom/ConnectionService#onCreateIncomingConnection(android.telecom.PhoneAccountHandle,%20android.telecom.ConnectionRequest)`
implementation.


The incoming call you are adding is assumed to have a video state of
`https://developer.android.com/reference/android/telecom/VideoProfile#STATE_AUDIO_ONLY`, unless the extra value
`https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_INCOMING_VIDEO_STATE` is specified.


Once invoked, this method will cause the system to bind to the `https://developer.android.com/reference/android/telecom/ConnectionService`
associated with the `https://developer.android.com/reference/android/telecom/PhoneAccountHandle` and request additional information about the
call (See `https://developer.android.com/reference/android/telecom/ConnectionService#onCreateIncomingConnection(android.telecom.PhoneAccountHandle,%20android.telecom.ConnectionRequest)`) before starting the incoming
call UI.


For a managed `https://developer.android.com/reference/android/telecom/ConnectionService`, a `https://developer.android.com/reference/java/lang/SecurityException` will be thrown if either
the `https://developer.android.com/reference/android/telecom/PhoneAccountHandle` does not correspond to a registered `https://developer.android.com/reference/android/telecom/PhoneAccount` or
the associated `https://developer.android.com/reference/android/telecom/PhoneAccount` is not currently enabled by the user.


For a self-managed `https://developer.android.com/reference/android/telecom/ConnectionService`, a `https://developer.android.com/reference/java/lang/SecurityException` will be thrown if
the `https://developer.android.com/reference/android/telecom/PhoneAccount` has `https://developer.android.com/reference/android/telecom/PhoneAccount#CAPABILITY_SELF_MANAGED` and the calling app
does not have `https://developer.android.com/reference/android/Manifest.permission#MANAGE_OWN_CALLS`.


**Note** : `https://developer.android.com/reference/android/app/Notification.CallStyle` notifications should be posted after
the call is added to Telecom in order for the notification to be non-dismissible.

<br />

| Parameters ||
|---|---|
| `phoneAccount` | `PhoneAccountHandle`: A `https://developer.android.com/reference/android/telecom/PhoneAccountHandle` registered with `https://developer.android.com/reference/android/telecom/TelecomManager#registerPhoneAccount(android.telecom.PhoneAccount)`. <br /> |
| `extras` | `Bundle`: A bundle that will be passed through to `https://developer.android.com/reference/android/telecom/ConnectionService#onCreateIncomingConnection(android.telecom.PhoneAccountHandle,%20android.telecom.ConnectionRequest)`. <br /> |

### addNewIncomingConference

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void addNewIncomingConference (PhoneAccountHandle phoneAccount, 
                Bundle extras)
```

Registers a new incoming conference. A `https://developer.android.com/reference/android/telecom/ConnectionService` should invoke this method
when it has an incoming conference. An incoming `https://developer.android.com/reference/android/telecom/Conference` is an adhoc conference
call initiated on another device which the user is being invited to join in. For managed
`https://developer.android.com/reference/android/telecom/ConnectionService`s, the specified `https://developer.android.com/reference/android/telecom/PhoneAccountHandle` must have been
registered with `https://developer.android.com/reference/android/telecom/TelecomManager#registerPhoneAccount(android.telecom.PhoneAccount)` and the user must have enabled the
corresponding `https://developer.android.com/reference/android/telecom/PhoneAccount`. This can be checked using
`https://developer.android.com/reference/android/telecom/TelecomManager#getPhoneAccount(android.telecom.PhoneAccountHandle)`. Self-managed `https://developer.android.com/reference/android/telecom/ConnectionService`s must
have `https://developer.android.com/reference/android/Manifest.permission#MANAGE_OWN_CALLS` to add a new incoming call.


The incoming conference you are adding is assumed to have a video state of
`https://developer.android.com/reference/android/telecom/VideoProfile#STATE_AUDIO_ONLY`, unless the extra value
`https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_INCOMING_VIDEO_STATE` is specified.


Once invoked, this method will cause the system to bind to the `https://developer.android.com/reference/android/telecom/ConnectionService`
associated with the `https://developer.android.com/reference/android/telecom/PhoneAccountHandle` and request additional information about the
call (See
`https://developer.android.com/reference/android/telecom/ConnectionService#onCreateIncomingConference(android.telecom.PhoneAccountHandle,%20android.telecom.ConnectionRequest)`)
before starting the incoming call UI.


For a managed `https://developer.android.com/reference/android/telecom/ConnectionService`, a `https://developer.android.com/reference/java/lang/SecurityException` will be thrown if either
the `https://developer.android.com/reference/android/telecom/PhoneAccountHandle` does not correspond to a registered `https://developer.android.com/reference/android/telecom/PhoneAccount` or
the associated `https://developer.android.com/reference/android/telecom/PhoneAccount` is not currently enabled by the user.

<br />

| Parameters ||
|---|---|
| `phoneAccount` | `PhoneAccountHandle`: A `https://developer.android.com/reference/android/telecom/PhoneAccountHandle` registered with `https://developer.android.com/reference/android/telecom/TelecomManager#registerPhoneAccount(android.telecom.PhoneAccount)`. This value cannot be `null`. <br /> |
| `extras` | `Bundle`: A bundle that will be passed through to `https://developer.android.com/reference/android/telecom/ConnectionService#onCreateIncomingConference(android.telecom.PhoneAccountHandle,%20android.telecom.ConnectionRequest)`. This value cannot be `null`. <br /> |

### cancelMissedCallsNotification

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void cancelMissedCallsNotification ()
```

Removes the missed-call notification if one is present and marks missed calls in the call
log as read.


Requires that the method-caller be set as the default dialer app.
.   
Requires `https://developer.android.com/reference/android/Manifest.permission#MODIFY_PHONE_STATE`

<br />

<br />

### createManageBlockedNumbersIntent

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Intent createManageBlockedNumbersIntent ()
```

Creates the `https://developer.android.com/reference/android/content/Intent` which can be used with `https://developer.android.com/reference/android/content/Context#startActivity(android.content.Intent)` to
launch the activity to manage blocked numbers.

The activity will display the UI to manage blocked numbers only if
`https://developer.android.com/reference/android/provider/BlockedNumberContract#canCurrentUserBlockNumbers(android.content.Context)` returns
`true` for the current user.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/content/Intent` | <br /> |

### endCall

Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level
29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean endCall ()
```


**This method was deprecated
in API level 29.**   

Companion apps for wearable devices should use the `https://developer.android.com/reference/android/telecom/InCallService` API
instead. Apps performing call screening should use the `https://developer.android.com/reference/android/telecom/CallScreeningService` API
instead.

Ends the foreground call on the device.


If there is a single call and it is ringing, calling this method rejects the ringing call.
Otherwise, the foreground (active) call is ended preferentially.


Note: this method CANNOT be used to end ongoing emergency calls and will return `false`
if an attempt is made to end an emergency call.


Note: If the foreground call on this device is self-managed or transactional, this method
will only end the call if the caller of this method is privileged (i.e. system, shell, or
root) or system UI.


Requires `https://developer.android.com/reference/android/Manifest.permission#ANSWER_PHONE_CALLS`

<br />

| Returns ||
|---|---|
| `boolean` | `true` if there is a call which will be rejected or terminated, `false` otherwise. <br /> |

### getAdnUriForPhoneAccount

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Uri getAdnUriForPhoneAccount (PhoneAccountHandle accountHandle)
```

Returns a URI (with the content:// scheme) specific to the specified `https://developer.android.com/reference/android/telecom/PhoneAccount`
for ADN content retrieval.


Requires `https://developer.android.com/reference/android/Manifest.permission#MODIFY_PHONE_STATE`

<br />

| Parameters ||
|---|---|
| `accountHandle` | `PhoneAccountHandle`: The handle for the account to derive an adn query URI for or `null` to return a URI which will use the default account. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/net/Uri` | The URI (with the content:// scheme) specific to the specified `https://developer.android.com/reference/android/telecom/PhoneAccount` for the the content retrieve. <br /> |

### getCallCapablePhoneAccounts

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public List<PhoneAccountHandle> getCallCapablePhoneAccounts ()
```

Returns a list of `https://developer.android.com/reference/android/telecom/PhoneAccountHandle`s which can be used to make and receive phone
calls. The returned list includes only those accounts which have been explicitly enabled
by the user.


For callers only interested in finding all SIMs for voice calls, it is recommended
to use `https://developer.android.com/reference/android/telephony/SubscriptionManager#getActiveSubscriptionInfoList()` instead.


Requires `https://developer.android.com/reference/android/Manifest.permission#READ_PHONE_STATE`

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/android/telecom/PhoneAccountHandle>` | A list of `PhoneAccountHandle` objects. <br /> |

**See also:**

- `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_PHONE_ACCOUNT_HANDLE`

### getDefaultDialerPackage

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getDefaultDialerPackage ()
```

Used to determine the currently selected default dialer package.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | package name for the default dialer package or null if no package has been selected as the default dialer. <br /> |

### getDefaultOutgoingPhoneAccount

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public PhoneAccountHandle getDefaultOutgoingPhoneAccount (String uriScheme)
```

Return the `https://developer.android.com/reference/android/telecom/PhoneAccount` which will be used to place outgoing calls to addresses with
the specified `uriScheme`. This `https://developer.android.com/reference/android/telecom/PhoneAccount` will always be a member of the
list which is returned from invoking `https://developer.android.com/reference/android/telecom/TelecomManager#getCallCapablePhoneAccounts()`. The specific
account returned depends on the following priorities:

- If the user-selected default `https://developer.android.com/reference/android/telecom/PhoneAccount` supports the specified scheme, it will be returned.
- If there exists only one `https://developer.android.com/reference/android/telecom/PhoneAccount` that supports the specified scheme, it will be returned.


If no `https://developer.android.com/reference/android/telecom/PhoneAccount` fits the criteria above, this method will return `null`.


For callers only interested in finding the default SIM for voice calls, it is recommended
to use `https://developer.android.com/reference/android/telephony/SubscriptionManager#getDefaultVoiceSubscriptionId()` instead.


Requires `https://developer.android.com/reference/android/Manifest.permission#READ_PHONE_STATE`

<br />

| Parameters ||
|---|---|
| `uriScheme` | `String`: The URI scheme. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/telecom/PhoneAccountHandle` | The `https://developer.android.com/reference/android/telecom/PhoneAccountHandle` corresponding to the account to be used. <br /> |

### getLine1Number

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level
33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getLine1Number (PhoneAccountHandle accountHandle)
```


**This method was deprecated
in API level 33.**   

use `https://developer.android.com/reference/android/telephony/SubscriptionManager#getPhoneNumber(int)` instead, which takes a
Telephony Subscription ID that can be retrieved with the `accountHandle`
from `https://developer.android.com/reference/android/telephony/TelephonyManager#getSubscriptionId(android.telecom.PhoneAccountHandle)`.

Return the line 1 phone number for given phone account.

Requires Permission:
`https://developer.android.com/reference/android/Manifest.permission#READ_SMS`,
`https://developer.android.com/reference/android/Manifest.permission#READ_PHONE_NUMBERS`,
or that the caller is the default SMS app for any API level.
`https://developer.android.com/reference/android/Manifest.permission#READ_PHONE_STATE`
for apps targeting SDK API level 29 and below.

<br />

| Parameters ||
|---|---|
| `accountHandle` | `PhoneAccountHandle`: The handle for the account retrieve a number for. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | A string representation of the line 1 phone number. <br /> |

### getOwnSelfManagedPhoneAccounts

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public List<PhoneAccountHandle> getOwnSelfManagedPhoneAccounts ()
```

Returns a list of `https://developer.android.com/reference/android/telecom/PhoneAccountHandle`s owned by the calling self-managed
`https://developer.android.com/reference/android/telecom/ConnectionService`.


Self-Managed `https://developer.android.com/reference/android/telecom/ConnectionService`s have a `https://developer.android.com/reference/android/telecom/PhoneAccount` with
`https://developer.android.com/reference/android/telecom/PhoneAccount#CAPABILITY_SELF_MANAGED`.


Requires permission `https://developer.android.com/reference/android/Manifest.permission#MANAGE_OWN_CALLS`


A `https://developer.android.com/reference/java/lang/SecurityException` will be thrown if a caller lacks the
`https://developer.android.com/reference/android/Manifest.permission#MANAGE_OWN_CALLS` permission.


Requires `https://developer.android.com/reference/android/Manifest.permission#MANAGE_OWN_CALLS`

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/android/telecom/PhoneAccountHandle>` | A list of `PhoneAccountHandle` objects. This value cannot be `null`. <br /> |

### getPhoneAccount

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public PhoneAccount getPhoneAccount (PhoneAccountHandle account)
```

Return the `https://developer.android.com/reference/android/telecom/PhoneAccount` for a specified `https://developer.android.com/reference/android/telecom/PhoneAccountHandle`. Object includes
resources which can be used in a user interface.

Requires Permission:
`https://developer.android.com/reference/android/Manifest.permission#READ_PHONE_NUMBERS` for applications targeting API
level 31+.

<br />

| Parameters ||
|---|---|
| `account` | `PhoneAccountHandle`: The `https://developer.android.com/reference/android/telecom/PhoneAccountHandle`. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/telecom/PhoneAccount` | The `https://developer.android.com/reference/android/telecom/PhoneAccount` object. <br /> |

### getRegisteredPhoneAccounts

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public List<PhoneAccount> getRegisteredPhoneAccounts ()
```

This API will return all `https://developer.android.com/reference/android/telecom/PhoneAccount`s the caller registered via
`https://developer.android.com/reference/android/telecom/TelecomManager#registerPhoneAccount(android.telecom.PhoneAccount)`. If a `https://developer.android.com/reference/android/telecom/PhoneAccount` appears
to be missing from the list, Telecom has either unregistered the `https://developer.android.com/reference/android/telecom/PhoneAccount` (for
cleanup purposes) or the caller registered the `https://developer.android.com/reference/android/telecom/PhoneAccount` under a different user
and does not have the `https://developer.android.com/` permission.
**Note:** This API will only return `https://developer.android.com/reference/android/telecom/PhoneAccount`s registered by the same app. For
system Dialers that need all the `https://developer.android.com/reference/android/telecom/PhoneAccount`s registered by every application, see
`https://developer.android.com/`.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/android/telecom/PhoneAccount>` | all the `https://developer.android.com/reference/android/telecom/PhoneAccount`s registered by the caller. This value cannot be `null`. <br /> |

### getSelfManagedPhoneAccounts

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public List<PhoneAccountHandle> getSelfManagedPhoneAccounts ()
```

Returns a list of `https://developer.android.com/reference/android/telecom/PhoneAccountHandle`s for all self-managed
`https://developer.android.com/reference/android/telecom/ConnectionService`s owned by the calling `https://developer.android.com/reference/android/os/UserHandle`.


Self-Managed `https://developer.android.com/reference/android/telecom/ConnectionService`s have a `https://developer.android.com/reference/android/telecom/PhoneAccount` with
`https://developer.android.com/reference/android/telecom/PhoneAccount#CAPABILITY_SELF_MANAGED`.


Requires permission `https://developer.android.com/reference/android/Manifest.permission#READ_PHONE_STATE`, or that the caller
is the default dialer app.


A `https://developer.android.com/reference/java/lang/SecurityException` will be thrown if a called is not the default dialer, or lacks
the `https://developer.android.com/reference/android/Manifest.permission#READ_PHONE_STATE` permission.


Requires `https://developer.android.com/reference/android/Manifest.permission#READ_PHONE_STATE`

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/android/telecom/PhoneAccountHandle>` | A list of `PhoneAccountHandle` objects. This value cannot be `null`. <br /> |

### getSimCallManager

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public PhoneAccountHandle getSimCallManager ()
```

Returns the current SIM call manager. Apps must be prepared for this method to return
`null`, indicating that there currently exists no SIM call manager `https://developer.android.com/reference/android/telecom/PhoneAccount`
for the default voice subscription.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/telecom/PhoneAccountHandle` | The phone account handle of the current sim call manager for the default voice subscription. <br /> |

**See also:**

- `https://developer.android.com/reference/android/telephony/SubscriptionManager#getDefaultVoiceSubscriptionId()`

### getSimCallManagerForSubscription

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public PhoneAccountHandle getSimCallManagerForSubscription (int subscriptionId)
```

Returns current SIM call manager for the Telephony Subscription ID specified. Apps must be
prepared for this method to return `null`, indicating that there currently exists no
SIM call manager `https://developer.android.com/reference/android/telecom/PhoneAccount` for the subscription specified.

<br />

| Parameters ||
|---|---|
| `subscriptionId` | `int`: The Telephony Subscription ID that the SIM call manager should be queried for. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/telecom/PhoneAccountHandle` | The phone account handle of the current sim call manager. <br /> |

**See also:**

- `https://developer.android.com/reference/android/telephony/SubscriptionManager#getActiveSubscriptionInfoList()`

### getSystemDialerPackage

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getSystemDialerPackage ()
```

Determines the package name of the system-provided default phone app.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | package name for the system dialer package or `null` if no system dialer is preloaded. <br /> |

### getUserSelectedOutgoingPhoneAccount

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public PhoneAccountHandle getUserSelectedOutgoingPhoneAccount ()
```

Return the `https://developer.android.com/reference/android/telecom/PhoneAccount` which is the user-chosen default for making outgoing phone
calls. This `PhoneAccount` will always be a member of the list which is returned from
calling `https://developer.android.com/reference/android/telecom/TelecomManager#getCallCapablePhoneAccounts()`


Apps must be prepared for this method to return `null`, indicating that there currently
exists no user-chosen default `PhoneAccount`.


The default dialer has access to use this method.


Requires `https://developer.android.com/reference/android/Manifest.permission#READ_PHONE_STATE`

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/telecom/PhoneAccountHandle` | The user outgoing phone account selected by the user, or `null` if there is no user selected outgoing `https://developer.android.com/reference/android/telecom/PhoneAccountHandle`. <br /> |

### getVoiceMailNumber

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getVoiceMailNumber (PhoneAccountHandle accountHandle)
```

Return the voicemail number for a given phone account.


Requires `https://developer.android.com/reference/android/Manifest.permission#READ_PHONE_STATE`

<br />

| Parameters ||
|---|---|
| `accountHandle` | `PhoneAccountHandle`: The handle for the phone account. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | The voicemail number for the phone account, and `null` if one has not been configured. <br /> |

### handleMmi

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean handleMmi (String dialString)
```

Processes the specified dial string as an MMI code.
MMI codes are any sequence of characters entered into the dialpad that contain a "\*" or "#".
Some of these sequences launch special behavior through handled by Telephony.
This method uses the default subscription.


Requires that the method-caller be set as the system dialer app.
.   
Requires `https://developer.android.com/reference/android/Manifest.permission#MODIFY_PHONE_STATE`   
Requires the `https://developer.android.com/reference/android/content/pm/PackageManager#FEATURE_TELEPHONY_CALLING` feature which can be detected using `https://developer.android.com/reference/android/content/pm/PackageManager#hasSystemFeature(java.lang.String)`.

<br />

<br />

| Parameters ||
|---|---|
| `dialString` | `String`: The digits to dial. <br /> |

| Returns ||
|---|---|
| `boolean` | True if the digits were processed as an MMI code, false otherwise. <br /> |

### handleMmi

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean handleMmi (String dialString, 
                PhoneAccountHandle accountHandle)
```

Processes the specified dial string as an MMI code.
MMI codes are any sequence of characters entered into the dialpad that contain a "\*" or "#".
Some of these sequences launch special behavior through handled by Telephony.


Requires that the method-caller be set as the system dialer app.
.   
Requires `https://developer.android.com/reference/android/Manifest.permission#MODIFY_PHONE_STATE`   
Requires the `https://developer.android.com/reference/android/content/pm/PackageManager#FEATURE_TELEPHONY_CALLING` feature which can be detected using `https://developer.android.com/reference/android/content/pm/PackageManager#hasSystemFeature(java.lang.String)`.

<br />

<br />

| Parameters ||
|---|---|
| `dialString` | `String`: The digits to dial. <br /> |
| `accountHandle` | `PhoneAccountHandle`: The handle for the account the MMI code should apply to. <br /> |

| Returns ||
|---|---|
| `boolean` | True if the digits were processed as an MMI code, false otherwise. <br /> |

### hasManageOngoingCallsPermission

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean hasManageOngoingCallsPermission ()
```

Returns whether the caller has `https://developer.android.com/reference/android/Manifest.permission#MANAGE_ONGOING_CALLS`
permission. The permission can be obtained by associating with a physical wearable device
via the `https://developer.android.com/reference/android/companion/CompanionDeviceManager` API as a companion app. If the
caller app has the permission, it has `https://developer.android.com/reference/android/telecom/InCallService` access to manage ongoing calls.

<br />

| Returns ||
|---|---|
| `boolean` | `true` if the caller has `https://developer.android.com/reference/android/telecom/InCallService` access for companion app; `false` otherwise. <br /> |

### isInCall

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean isInCall ()
```

Returns whether there is an ongoing phone call (can be in dialing, ringing, active or holding
states) originating from either a manager or self-managed `https://developer.android.com/reference/android/telecom/ConnectionService`.


Requires `https://developer.android.com/reference/android/Manifest.permission#READ_PHONE_STATE`

<br />

| Returns ||
|---|---|
| `boolean` | `true` if there is an ongoing call in either a managed or self-managed `https://developer.android.com/reference/android/telecom/ConnectionService`, `false` otherwise. <br /> |

### isInExternalCall

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean isInExternalCall ()
```

Returns whether there is an ongoing phone call (can be in dialing, ringing, active or holding
states) that is an external call.


External calls take place on another dveice. They do not retain audio focus or result in call
audio routing operations. For example, a wearable device may provide a UI for a call which
takes place on the user's phone for the purpose of controlling the call or potentially
pulling it to the wearable; such a call is external.


Calls with
`https://developer.android.com/reference/android/telecom/Call.Details#PROPERTY_IS_EXTERNAL_CALL` are external.


Requires `https://developer.android.com/reference/android/Manifest.permission#READ_PHONE_STATE`

<br />

| Returns ||
|---|---|
| `boolean` | `true` if there is an ongoing call that is external, `false` otherwise. <br /> |

### isInManagedCall

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean isInManagedCall ()
```

Returns whether there is an ongoing call originating from a managed
`https://developer.android.com/reference/android/telecom/ConnectionService`. An ongoing call can be in dialing, ringing, active or holding
states.


If you also need to know if there are ongoing self-managed calls, use `https://developer.android.com/reference/android/telecom/TelecomManager#isInCall()`
instead.


Requires `https://developer.android.com/reference/android/Manifest.permission#READ_PHONE_STATE`

<br />

| Returns ||
|---|---|
| `boolean` | `true` if there is an ongoing call in a managed `https://developer.android.com/reference/android/telecom/ConnectionService`, `false` otherwise. <br /> |

### isIncomingCallPermitted

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean isIncomingCallPermitted (PhoneAccountHandle phoneAccountHandle)
```

Determines whether Telecom would permit an incoming call to be added via the
`https://developer.android.com/reference/android/telecom/TelecomManager#addNewIncomingCall(android.telecom.PhoneAccountHandle,%20android.os.Bundle)` API for the specified
`https://developer.android.com/reference/android/telecom/PhoneAccountHandle`.


A `https://developer.android.com/reference/android/telecom/ConnectionService` may not add a call for the specified `https://developer.android.com/reference/android/telecom/PhoneAccountHandle`
in the following situations:

- `https://developer.android.com/reference/android/telecom/PhoneAccount` does not have property `https://developer.android.com/reference/android/telecom/PhoneAccount#CAPABILITY_SELF_MANAGED` set (i.e. it is a managed `https://developer.android.com/reference/android/telecom/ConnectionService`), and the active or held call limit has been reached.
- There is an ongoing emergency call.

<br />

<br />

| Parameters ||
|---|---|
| `phoneAccountHandle` | `PhoneAccountHandle`: The `https://developer.android.com/reference/android/telecom/PhoneAccountHandle` the call will be added for. <br /> |

| Returns ||
|---|---|
| `boolean` | `true` if telecom will permit an incoming call to be added, `false` otherwise. <br /> |

### isOutgoingCallPermitted

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean isOutgoingCallPermitted (PhoneAccountHandle phoneAccountHandle)
```

Determines whether Telecom would permit an outgoing call to be placed via the
`https://developer.android.com/reference/android/telecom/TelecomManager#placeCall(android.net.Uri,%20android.os.Bundle)` API for the specified `https://developer.android.com/reference/android/telecom/PhoneAccountHandle`.


A `https://developer.android.com/reference/android/telecom/ConnectionService` may not place a call for the specified `https://developer.android.com/reference/android/telecom/PhoneAccountHandle`
in the following situations:

- `https://developer.android.com/reference/android/telecom/PhoneAccount` does not have property `https://developer.android.com/reference/android/telecom/PhoneAccount#CAPABILITY_SELF_MANAGED` set (i.e. it is a managed `https://developer.android.com/reference/android/telecom/ConnectionService`), and the active, held or ringing call limit has been reached.
- `https://developer.android.com/reference/android/telecom/PhoneAccount` has property `https://developer.android.com/reference/android/telecom/PhoneAccount#CAPABILITY_SELF_MANAGED` set (i.e. it is a self-managed `https://developer.android.com/reference/android/telecom/ConnectionService` and there is an ongoing call in another `https://developer.android.com/reference/android/telecom/ConnectionService`.
- There is an ongoing emergency call.

<br />

<br />

| Parameters ||
|---|---|
| `phoneAccountHandle` | `PhoneAccountHandle`: The `https://developer.android.com/reference/android/telecom/PhoneAccountHandle` the call will be added for. <br /> |

| Returns ||
|---|---|
| `boolean` | `true` if telecom will permit an outgoing call to be placed, `false` otherwise. <br /> |

### isTtySupported

Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean isTtySupported ()
```

Returns whether TTY is supported on this device.


Requires `https://developer.android.com/` or `https://developer.android.com/reference/android/Manifest.permission#READ_PHONE_STATE`

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

### isVoiceMailNumber

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean isVoiceMailNumber (PhoneAccountHandle accountHandle, 
                String number)
```

Return whether a given phone number is the configured voicemail number for a
particular phone account.


Requires `https://developer.android.com/reference/android/Manifest.permission#READ_PHONE_STATE`

<br />

| Parameters ||
|---|---|
| `accountHandle` | `PhoneAccountHandle`: The handle for the account to check the voicemail number against <br /> |
| `number` | `String`: The number to look up. <br /> |

| Returns ||
|---|---|
| `boolean` | <br /> |

### placeCall

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void placeCall (Uri address, 
                Bundle extras)
```

Places a new outgoing call to the provided address using the system telecom service with
the specified extras.

This method is equivalent to placing an outgoing call using `https://developer.android.com/reference/android/content/Intent#ACTION_CALL`,
except that the outgoing call will always be sent via the system telecom service. If
method-caller is either the user selected default dialer app or preloaded system dialer
app, then emergency calls will also be allowed.

Placing a call via a managed `https://developer.android.com/reference/android/telecom/ConnectionService` requires permission:
`https://developer.android.com/reference/android/Manifest.permission#CALL_PHONE`

Usage example:

```
Uri uri = Uri.fromParts("tel", "12345", null);
Bundle extras = new Bundle();
extras.putBoolean(TelecomManager.EXTRA_START_CALL_WITH_SPEAKERPHONE, true);
telecomManager.placeCall(uri, extras);
```
The following keys are supported in the supplied extras.

- `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_OUTGOING_CALL_EXTRAS`
- `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_PHONE_ACCOUNT_HANDLE`
- `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_START_CALL_WITH_SPEAKERPHONE`
- `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_START_CALL_WITH_VIDEO_STATE`
- `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_CALL_TYPE`


An app which implements the self-managed `https://developer.android.com/reference/android/telecom/ConnectionService` API uses
`https://developer.android.com/reference/android/telecom/TelecomManager#placeCall(android.net.Uri,%20android.os.Bundle)` to inform Telecom of a new outgoing call. A self-managed
`https://developer.android.com/reference/android/telecom/ConnectionService` must include `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_PHONE_ACCOUNT_HANDLE` to specify its
associated `https://developer.android.com/reference/android/telecom/PhoneAccountHandle`.

Self-managed `https://developer.android.com/reference/android/telecom/ConnectionService`s require permission
`https://developer.android.com/reference/android/Manifest.permission#MANAGE_OWN_CALLS`.

**Note:** If this method is used to place an emergency call, it
is not guaranteed that the call will be placed on the `https://developer.android.com/reference/android/telecom/PhoneAccount` provided in
the `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_PHONE_ACCOUNT_HANDLE` extra (if specified) and may be placed on another
`https://developer.android.com/reference/android/telecom/PhoneAccount` with the `https://developer.android.com/reference/android/telecom/PhoneAccount#CAPABILITY_PLACE_EMERGENCY_CALLS`
capability, depending on external factors, such as network conditions and Modem/SIM status.


**Note** : `https://developer.android.com/reference/android/app/Notification.CallStyle` notifications should be posted after
the call is placed in order for the notification to be non-dismissible.

**Note**: Call Forwarding MMI codes can only be dialed by applications that are
configured as the user defined default dialer or system dialer role. If a call containing a
call forwarding MMI code is placed by an application that is not in one of these roles, the
dialer will be launched with a UI showing the MMI code already populated so that the user can
confirm the action before the call is placed.

**Note** : The dialer application may set the URI parameter of address to specify
a call log record. This allows the dialer to launch a related application to initiate
a callback for a specific call log entry. The dialer must have the READ_CALL_LOGS permission
to access call log records. The ContentUri for a specific call log record can be obtained
by `https://developer.android.com/`,
where callLogId is the `https://developer.android.com/reference/android/provider/BaseColumns#_ID` of the call log record.


Requires `https://developer.android.com/reference/android/Manifest.permission#CALL_PHONE` or `https://developer.android.com/reference/android/Manifest.permission#MANAGE_OWN_CALLS`

<br />

| Parameters ||
|---|---|
| `address` | `Uri`: The address to make the call to. <br /> |
| `extras` | `Bundle`: Bundle of extras to use with the call. <br /> |

### registerPhoneAccount

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void registerPhoneAccount (PhoneAccount account)
```

Register a `https://developer.android.com/reference/android/telecom/PhoneAccount` for use by the system that will be stored in Device Encrypted
storage. When registering `https://developer.android.com/reference/android/telecom/PhoneAccount`s, existing registrations will be overwritten
if the `https://developer.android.com/reference/android/telecom/PhoneAccountHandle` matches that of a `https://developer.android.com/reference/android/telecom/PhoneAccount` which is already
registered. Once registered, the `https://developer.android.com/reference/android/telecom/PhoneAccount` is listed to the user as an option
when placing calls. The user may still need to enable the `https://developer.android.com/reference/android/telecom/PhoneAccount` within
the phone app settings before the account is usable.


Note: Each package is limited to 10 `https://developer.android.com/reference/android/telecom/PhoneAccount` registrations.


A `https://developer.android.com/reference/java/lang/SecurityException` will be thrown if an app tries to register a
`https://developer.android.com/reference/android/telecom/PhoneAccountHandle` where the package name specified within
`https://developer.android.com/reference/android/telecom/PhoneAccountHandle#getComponentName()` does not match the package name of the app.


A `https://developer.android.com/reference/java/lang/IllegalArgumentException` will be thrown if an app tries to register a
`https://developer.android.com/reference/android/telecom/PhoneAccount` when the upper bound limit, 10, has already been reached.

<br />

| Parameters ||
|---|---|
| `account` | `PhoneAccount`: The complete `https://developer.android.com/reference/android/telecom/PhoneAccount`. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/SecurityException` | if: 1. the caller cannot modify phone state and the phone account doesn't belong to the calling user. 2. the caller is registering a self-managed phone and either they are not allowed to manage their own calls or if the account is call capable, a connection manager, or a sim account. 3. the caller is registering a sim account without the ability to do so. 4. the caller is registering a multi-user phone account but isn't a system app. 5. the account can make SIM-based voice calls but the caller cannot register sim accounts or isn't a sim call manager. 6. the account defines the EXTRA_SKIP_CALL_FILTERING extra but the caller isn't able to modify the phone state. 7. the caller is registering an account for a different user but isn't able to interact across users. 8. if simultaneous calling is available and the phone account package name doesn't correspond to the simultaneous calling accounts associated with this phone account. |
| `https://developer.android.com/reference/java/lang/UnsupportedOperationException` | if the caller cannot modify phone state and the device does not have the Telecom feature. |

### showInCallScreen

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void showInCallScreen (boolean showDialpad)
```

Brings the in-call screen to the foreground if there is an ongoing call. If there is
currently no ongoing call, then this method does nothing.


Requires that the method-caller be set as the system dialer app or have the
`https://developer.android.com/reference/android/Manifest.permission#READ_PHONE_STATE` permission.
.   
Requires `https://developer.android.com/reference/android/Manifest.permission#READ_PHONE_STATE`

<br />

<br />

| Parameters ||
|---|---|
| `showDialpad` | `boolean`: Brings up the in-call dialpad as part of showing the in-call screen. <br /> |

### silenceRinger

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void silenceRinger ()
```

Silences the ringer if a ringing call exists.


This method can only be relied upon to stop the ringtone for a call if the ringtone has
already started playing. It is intended to handle use-cases such as silencing a ringing call
when the user presses the volume button during ringing.


If this method is called prior to when the ringtone begins playing, the ringtone will not be
silenced. As such it is not intended as a means to avoid playing of a ringtone.


A dialer app which wants to have more control over ringtone playing should declare
`https://developer.android.com/reference/android/telecom/TelecomManager#METADATA_IN_CALL_SERVICE_RINGING` in the manifest entry for their
`https://developer.android.com/reference/android/telecom/InCallService` implementation to indicate that the app wants to be responsible for
playing the ringtone for all incoming calls.


Requires permission: `https://developer.android.com/reference/android/Manifest.permission#MODIFY_PHONE_STATE` or that the
app fills the dialer role (see `https://developer.android.com/reference/android/telecom/TelecomManager#getDefaultDialerPackage()`).


Requires `https://developer.android.com/reference/android/Manifest.permission#MODIFY_PHONE_STATE`

<br />

### startConference

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void startConference (List<Uri> participants, 
                Bundle extras)
```

Place a new adhoc conference call with the provided participants using the system telecom
service. This method doesn't support placing of emergency calls.

An adhoc conference call is established by providing a list of addresses to
`TelecomManager#startConference(List<Uri>, int videoState)` where the
`https://developer.android.com/reference/android/telecom/ConnectionService` is responsible for connecting all indicated participants
to a conference simultaneously.
This is in contrast to conferences formed by merging calls together (e.g. using
`https://developer.android.com/reference/android/telecom/Call#mergeConference()`).

The following keys are supported in the supplied extras.

- `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_PHONE_ACCOUNT_HANDLE`
- `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_START_CALL_WITH_SPEAKERPHONE`
- `https://developer.android.com/reference/android/telecom/TelecomManager#EXTRA_START_CALL_WITH_VIDEO_STATE`

.   
Requires `https://developer.android.com/reference/android/Manifest.permission#CALL_PHONE`

<br />

<br />

| Parameters ||
|---|---|
| `participants` | `List`: List of participants to start conference with. This value cannot be `null`. <br /> |
| `extras` | `Bundle`: Bundle of extras to use with the call. This value cannot be `null`. <br /> |

### unregisterPhoneAccount

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void unregisterPhoneAccount (PhoneAccountHandle accountHandle)
```

Remove a `https://developer.android.com/reference/android/telecom/PhoneAccount` registration from the system.

<br />

| Parameters ||
|---|---|
| `accountHandle` | `PhoneAccountHandle`: A `https://developer.android.com/reference/android/telecom/PhoneAccountHandle` for the `https://developer.android.com/reference/android/telecom/PhoneAccount` to unregister. <br /> |