Compartilhar via


TelephonyManager Class

Definition

Provides access to information about the telephony services on the device.

[Android.Runtime.Register("android/telephony/TelephonyManager", DoNotGenerateAcw=true)]
public class TelephonyManager : Java.Lang.Object
[<Android.Runtime.Register("android/telephony/TelephonyManager", DoNotGenerateAcw=true)>]
type TelephonyManager = class
    inherit Object
Inheritance
TelephonyManager
Attributes

Remarks

Provides access to information about the telephony services on the device. Applications can use the methods in this class to determine telephony services and states, as well as to access some types of subscriber information. Applications can also register a listener to receive notification of telephony state changes.

The returned TelephonyManager will use the default subscription for all calls. To call an API for a specific subscription, use #createForSubscriptionId(int). e.g. telephonyManager = defaultSubTelephonyManager.createForSubscriptionId(subId);

Note that access to some telephony information is permission-protected. Your application cannot access the protected information unless it has the appropriate permissions declared in its manifest file. Where permissions apply, they are noted in the the methods through which you access the protected information.

TelephonyManager is intended for use on devices that implement android.content.pm.PackageManager#FEATURE_TELEPHONY FEATURE_TELEPHONY. On devices that do not implement this feature, the behavior is not reliable.

Java documentation for android.telephony.TelephonyManager.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

TelephonyManager(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Fields

ActionCarrierMessagingClientService

A service action that identifies a android.service.carrier.CarrierMessagingClientService subclass in the AndroidManifest.

ActionCarrierSignalDefaultNetworkAvailable

Broadcast action sent when the availability of the system default network changes.

ActionCarrierSignalPcoValue

Broadcast action sent when a PCO value becomes available from the modem.

ActionCarrierSignalRedirected

Broadcast action sent when a data connection is redirected with validation failure.

ActionCarrierSignalRequestNetworkFailed

Broadcast action sent when a data connection setup fails.

ActionCarrierSignalReset

Broadcast action sent when carrier apps should reset their internal state.

ActionConfigureVoicemail

Open the voicemail settings activity to make changes to voicemail configuration.

ActionMultiSimConfigChanged

Broadcast action to be received by Broadcast receivers.

ActionNetworkCountryChanged

Broadcast intent action for network country code changes.

ActionPhoneStateChanged

Broadcast intent action indicating that the call state on the device has changed.

ActionRespondViaMessage

The Phone app sends this intent when a user opts to respond-via-message during an incoming call.

ActionSecretCode

Broadcast Action: A debug code has been entered in the dialer.

ActionShowVoicemailNotification

Broadcast intent action for letting the default dialer to know to show voicemail notification.

ActionSubscriptionCarrierIdentityChanged

Broadcast Action: The subscription carrier identity has changed.

ActionSubscriptionSpecificCarrierIdentityChanged

Broadcast Action: The subscription specific carrier identity has changed.

AllowedNetworkTypesReasonCarrier
Obsolete.

To indicate allowed network type change is requested by carrier.

AllowedNetworkTypesReasonUser
Obsolete.

To indicate allowed network type change is requested by user.

ApptypeCsim
Obsolete.

UICC application type is CSIM

ApptypeIsim
Obsolete.

UICC application type is ISIM

ApptypeRuim
Obsolete.

UICC application type is RUIM

ApptypeSim
Obsolete.

UICC application type is SIM

ApptypeUnknown
Obsolete.

UICC application type is unknown or not specified

ApptypeUsim
Obsolete.

UICC application type is USIM

AuthtypeEapAka
Obsolete.

Authentication type for UICC challenge is EAP AKA.

AuthtypeEapSim
Obsolete.

Authentication type for UICC challenge is EAP SIM.

AuthtypeGbaBootstrap
Obsolete.

Authentication type for GBA Bootstrap Challenge.

AuthtypeGbaNafKeyExternal
Obsolete.

Authentication type for GBA Network Application Functions (NAF) key External Challenge.

CallComposerStatusOff
Obsolete.

Call composer status OFF from user setting.

CallComposerStatusOn
Obsolete.

Call composer status ON from user setting.

CapabilitySlicingConfigSupported

Indicates whether #getNetworkSlicingConfiguration is supported.

CarrierRestrictionStatusNotRestricted
Obsolete.

The device is not restricted to a carrier

CarrierRestrictionStatusRestricted
Obsolete.

The device is restricted to a carrier.

CarrierRestrictionStatusRestrictedToCaller
Obsolete.

The device is restricted to the carrier of the calling application.

CarrierRestrictionStatusUnknown
Obsolete.

Carrier restriction status value is unknown, in case modem did not provide any information about carrier restriction status.

CdmaRoamingModeAffiliated

Value for CarrierConfigManager#KEY_CDMA_ROAMING_MODE_INT which permits roaming on affiliated networks.

CdmaRoamingModeAny

Value for CarrierConfigManager#KEY_CDMA_ROAMING_MODE_INT which permits roaming on any network.

CdmaRoamingModeHome

Value for CarrierConfigManager#KEY_CDMA_ROAMING_MODE_INT which only permits connections on home networks.

CdmaRoamingModeRadioDefault

Value for CarrierConfigManager#KEY_CDMA_ROAMING_MODE_INT which leaves the roaming mode set to the radio default or to the user's preference if they've indicated one.

DataDisconnecting
Obsolete.

Data connection state: Disconnecting.

DataEnabledReasonCarrier
Obsolete.

To indicate enable or disable carrier data by the system based on carrier signalling or carrier privileged apps.

DataEnabledReasonOverride
Obsolete.

To indicate data was enabled or disabled due to MobileDataPolicy overrides.

DataEnabledReasonPolicy
Obsolete.

To indicate that data control due to policy.

DataEnabledReasonThermal
Obsolete.

To indicate enable or disable data by thermal service.

DataEnabledReasonUnknown
Obsolete.

To indicate that data was enabled or disabled due to an unknown reason.

DataEnabledReasonUser
Obsolete.

To indicate that user enabled or disabled data.

DataHandoverInProgress
Obsolete.

Data connection state: Handover in progress.

DefaultPortIndex

Default port index for a UICC.

EriFlash
Obsolete.

ERI (Enhanced Roaming Indicator) is FLASH i.

EriOff
Obsolete.

ERI (Enhanced Roaming Indicator) is OFF i.

EriOn
Obsolete.

ERI (Enhanced Roaming Indicator) is ON i.

ExtraActiveSimSupportedCount

The number of active SIM supported by current multi-SIM config.

ExtraApnProtocol

An integer extra containing the protocol of the apn connection.

ExtraApnType

An integer extra containing the APN type.

ExtraCallVoicemailIntent

The intent to call voicemail.

ExtraCarrierId

An int extra used with #ACTION_SUBSCRIPTION_CARRIER_IDENTITY_CHANGED which indicates the updated carrier id returned by TelephonyManager#getSimCarrierId().

ExtraCarrierName

An string extra used with #ACTION_SUBSCRIPTION_CARRIER_IDENTITY_CHANGED which indicates the updated carrier name of the current subscription.

ExtraDataFailCause

An integer extra containing the data fail cause.

ExtraDefaultNetworkAvailable

A boolean extra indicating the availability of the default network.

ExtraHidePublicSettings

The boolean value indicating whether the voicemail settings activity launched by #ACTION_CONFIGURE_VOICEMAIL should hide settings accessible through public API.

ExtraIncomingNumber

Extra key used with the #ACTION_PHONE_STATE_CHANGED broadcast for a String containing the incoming or outgoing phone number.

ExtraIsRefresh

Boolean value representing whether the TelephonyManager#ACTION_SHOW_VOICEMAIL_NOTIFICATION is new or a refresh of an existing notification.

ExtraLastKnownNetworkCountry

The extra used with an #ACTION_NETWORK_COUNTRY_CHANGED to specify the last known the country code in ISO-3166-1 alpha-2 format.

ExtraLaunchVoicemailSettingsIntent

The intent to launch voicemail settings.

ExtraNetworkCountry

The extra used with an #ACTION_NETWORK_COUNTRY_CHANGED to specify the the country code in ISO-3166-1 alpha-2 format.

ExtraNotificationCount

The number of voice messages associated with the notification.

ExtraPcoId

An integer extra indicating the ID for the PCO data.

ExtraPcoValue

A byte array extra containing PCO data read from the modem.

ExtraPhoneAccountHandle

The extra used with an #ACTION_CONFIGURE_VOICEMAIL and #ACTION_SHOW_VOICEMAIL_NOTIFICATIONIntent to specify the PhoneAccountHandle the configuration or notification is for.

ExtraRedirectionUrl

String extra containing the redirection URL sent with #ACTION_CARRIER_SIGNAL_REDIRECTED.

ExtraSpecificCarrierId

An int extra used with #ACTION_SUBSCRIPTION_SPECIFIC_CARRIER_IDENTITY_CHANGED which indicates the updated specific carrier id returned by TelephonyManager#getSimSpecificCarrierId().

ExtraSpecificCarrierName

An string extra used with #ACTION_SUBSCRIPTION_SPECIFIC_CARRIER_IDENTITY_CHANGED which indicates the updated specific carrier name returned by TelephonyManager#getSimSpecificCarrierIdName().

ExtraState

The lookup key used with the #ACTION_PHONE_STATE_CHANGED broadcast for a String containing the new call state.

ExtraSubscriptionId

An int extra used with #ACTION_SUBSCRIPTION_CARRIER_IDENTITY_CHANGED to indicate the subscription which has changed; or in general whenever a subscription ID needs specified.

ExtraVoicemailNumber

The voicemail number.

IncludeLocationDataCoarse
Obsolete.

Include coarse location data.

IncludeLocationDataFine
Obsolete.

Include fine location data.

IncludeLocationDataNone
Obsolete.

Specifies to not include any location related data.

MetadataHideVoicemailSettingsMenu

A boolean meta-data value indicating whether the voicemail settings should be hidden in the call settings page launched by android.telecom.TelecomManager#ACTION_SHOW_CALL_SETTINGS.

MultisimAllowed
Obsolete.

The usage of multiple SIM cards at the same time to register on the network (e.

MultisimNotSupportedByCarrier
Obsolete.

The usage of multiple SIM cards at the same time to register on the network (e.

MultisimNotSupportedByHardware
Obsolete.

The usage of multiple SIM cards at the same time to register on the network (e.

NetworkSelectionModeAuto
NetworkSelectionModeManual
NetworkSelectionModeUnknown
NETWORKTYPEBITMASK1xRTT

network type bitmask indicating the support of radio tech 1xRTT.

NetworkTypeBitmaskCdma

network type bitmask indicating the support of radio tech CDMA(IS95A/IS95B).

NetworkTypeBitmaskEdge

network type bitmask indicating the support of radio tech EDGE.

NetworkTypeBitmaskEhrpd

network type bitmask indicating the support of radio tech EHRPD.

NetworkTypeBitmaskEvdo0

network type bitmask indicating the support of radio tech EVDO 0.

NetworkTypeBitmaskEvdoA

network type bitmask indicating the support of radio tech EVDO A.

NetworkTypeBitmaskEvdoB

network type bitmask indicating the support of radio tech EVDO B.

NetworkTypeBitmaskGprs

network type bitmask indicating the support of radio tech GPRS.

NetworkTypeBitmaskGsm

network type bitmask indicating the support of radio tech GSM.

NetworkTypeBitmaskHsdpa

network type bitmask indicating the support of radio tech HSDPA.

NetworkTypeBitmaskHspa

network type bitmask indicating the support of radio tech HSPA.

NetworkTypeBitmaskHspap

network type bitmask indicating the support of radio tech HSPAP.

NetworkTypeBitmaskHsupa

network type bitmask indicating the support of radio tech HSUPA.

NetworkTypeBitmaskIwlan

network type bitmask indicating the support of radio tech IWLAN.

NetworkTypeBitmaskLte

network type bitmask indicating the support of radio tech LTE.

NetworkTypeBitmaskLteCa

NOT USED; this bitmask is exposed accidentally.

NetworkTypeBitmaskNr

network type bitmask indicating the support of radio tech NR(New Radio) 5G.

NetworkTypeBitmaskTdScdma

network type bitmask indicating the support of radio tech TD_SCDMA.

NetworkTypeBitmaskUmts

network type bitmask indicating the support of radio tech UMTS.

NetworkTypeBitmaskUnknown

network type bitmask unknown.

PremiumCapabilityPrioritizeLatency
Obsolete.

A premium capability that boosts the network to allow for real-time interactive traffic by prioritizing low latency communication.

PurchasePremiumCapabilityResultAlreadyInProgress
Obsolete.

Purchase premium capability failed because a request was already made and is in progress.

PurchasePremiumCapabilityResultAlreadyPurchased
Obsolete.

Purchase premium capability failed because it is already purchased and available.

PurchasePremiumCapabilityResultCarrierDisabled
Obsolete.

Purchase premium capability failed because the carrier disabled or does not support the capability, as specified in CarrierConfigManager#KEY_SUPPORTED_PREMIUM_CAPABILITIES_INT_ARRAY.

PurchasePremiumCapabilityResultCarrierError
Obsolete.

Purchase premium capability failed because the carrier app did not indicate success.

PurchasePremiumCapabilityResultEntitlementCheckFailed
Obsolete.

Purchase premium capability failed because the entitlement check failed.

PurchasePremiumCapabilityResultFeatureNotSupported
Obsolete.

Purchase premium capability failed because the device does not support the feature.

PurchasePremiumCapabilityResultNetworkNotAvailable
Obsolete.

Purchase premium capability failed because the network is not available.

PurchasePremiumCapabilityResultNotDefaultDataSubscription
Obsolete.

Purchase premium capability failed because the request was not made on the default data subscription, indicated by SubscriptionManager#getDefaultDataSubscriptionId().

PurchasePremiumCapabilityResultNotForeground
Obsolete.

Purchase premium capability failed because the requesting application is not in the foreground.

PurchasePremiumCapabilityResultPendingNetworkSetup
Obsolete.

Purchase premium capability was successful and is waiting for the network to setup the slicing configuration.

PurchasePremiumCapabilityResultRequestFailed
Obsolete.

Purchase premium capability failed because the telephony service is unavailable or there was an error in the phone process.

PurchasePremiumCapabilityResultSuccess
Obsolete.

Purchase premium capability request was successful.

PurchasePremiumCapabilityResultThrottled
Obsolete.

Purchase premium capability failed because the request is throttled.

PurchasePremiumCapabilityResultTimeout
Obsolete.

Purchase premium capability failed because we did not receive a response from the user for the performance boost notification within the time specified by CarrierConfigManager#KEY_PREMIUM_CAPABILITY_NOTIFICATION_DISPLAY_TIMEOUT_MILLIS_LONG.

PurchasePremiumCapabilityResultUserCanceled
Obsolete.

Purchase premium capability failed because the user canceled the operation.

SetOpportunisticSubInactiveSubscription

The subscription is not valid.

SetOpportunisticSubNoOpportunisticSubAvailable

The subscription is not valid.

SetOpportunisticSubRemoteServiceException

Subscription service happened remote exception.

SetOpportunisticSubSuccess

No error.

SetOpportunisticSubValidationFailed

Validation failed when trying to switch to preferred subscription.

UninitializedCardId

A UICC card identifier used before the UICC card is loaded.

UnknownCarrierId

An unknown carrier id.

UnsupportedCardId

A UICC card identifier used if the device does not support the operation.

UpdateAvailableNetworksAborted

The request is aborted.

UpdateAvailableNetworksDisableModemFail

Disable modem fail.

UpdateAvailableNetworksEnableModemFail

Enable modem fail.

UpdateAvailableNetworksInvalidArguments

The parameter passed in is invalid.

UpdateAvailableNetworksMultipleNetworksNotSupported

Carrier app does not support multiple available networks.

UpdateAvailableNetworksNoCarrierPrivilege

No carrier privilege.

UpdateAvailableNetworksNoOpportunisticSubAvailable

The subscription is not valid.

UpdateAvailableNetworksRemoteServiceException

There is no OpportunisticNetworkService.

UpdateAvailableNetworksServiceIsDisabled

OpportunisticNetworkService is disabled.

UpdateAvailableNetworksSuccess

No error.

UpdateAvailableNetworksUnknownFailure

There is a unknown failure happened.

VvmTypeCvvm

A flavor of OMTP protocol with a different mobile originated (MO) format

VvmTypeOmtp

The OMTP protocol.

Properties

ActiveModemCount

Returns the number of logical modems currently configured to be activated.

AllCellInfo

Requests all available cell information from all radios on the device including the camped/registered, serving, and neighboring cells.

CallComposerStatus

Get the user-set status for enriched calling with call composer. -or- Set the user-set status for enriched calling with call composer.

CallState

Returns the state of all calls on the device.

CallStateForSubscription

Retrieve the call state for a specific subscription that was specified when this TelephonyManager instance was created.

CardIdForDefaultEuicc

Get the card ID of the default eUICC card.

CarrierConfig

Returns the carrier config of the subscription ID pinned to the TelephonyManager.

CarrierIdFromSimMccMnc

Returns carrier id based on sim MCCMNC (returned by #getSimOperator()) only.

CellLocation

Returns the current location of the device.

Class

Returns the runtime class of this Object.

(Inherited from Object)
DataActivity

Returns a constant indicating the type of activity on a data connection (cellular).

DataEnabled

Returns whether mobile data is enabled or not per user setting. -or- Values used to return status for hasCarrierPrivileges call.

DataNetworkType

Returns a constant indicating the radio technology (network type) currently in use on the device for data transmission.

DataState

Returns a constant indicating the current data connection state (cellular).

DeviceId

Returns the unique device ID, for example, the IMEI for GSM and the MEID or ESN for CDMA phones.

DeviceSoftwareVersion

Returns the software version number for the device, for example, the IMEI/SV for GSM phones.

EmergencyNumberList

Get the emergency number list based on current locale, sim, default, modem and network.

EquivalentHomePlmns

Returns a list of the equivalent home PLMNs (EF_EHPLMN) from the USIM app.

ExtraStateIdle

Value used with #EXTRA_STATE corresponding to #CALL_STATE_IDLE.

ExtraStateOffhook

Value used with #EXTRA_STATE corresponding to #CALL_STATE_OFFHOOK.

ExtraStateRinging

Value used with #EXTRA_STATE corresponding to #CALL_STATE_RINGING.

GroupIdLevel1

Returns the Group Identifier Level1 for a GSM phone.

Handle

The handle to the underlying Android instance.

(Inherited from Object)
HasCarrierPrivileges

Has the calling application been granted carrier privileges by the carrier.

HasIccCard

This API is used to check if there is an ICC card present in the device.

Imei

Returns the IMEI (International Mobile Equipment Identity).

IsConcurrentVoiceAndDataSupported

Whether the device is currently on a technology (e.

IsDataCapable
IsDataConnectionAllowed

Checks whether cellular data connection is allowed in the device.

IsDataRoamingEnabled

Returns whether mobile data roaming is enabled on the subscription.

IsHearingAidCompatibilitySupported

Whether the phone supports hearing aid compatibility.

IsManualNetworkSelectionAllowed

Checks if manual network selection is allowed.

IsNetworkRoaming

Returns true if the device is considered roaming on the current network, for GSM purposes.

IsRttSupported

Determines whether the device currently supports RTT (Real-time text).

IsSmsCapable
IsTtyModeSupported

This member is deprecated.

IsVoiceCapable
IsWorldPhone

Whether the device is a world phone.

JniIdentityHashCode (Inherited from Object)
JniPeerMembers
Line1Number

Returns the phone number string for line 1, for example, the MSISDN for a GSM phone for a particular subscription.

ManualNetworkSelectionPlmn

Get the PLMN chosen for Manual Network Selection if active.

ManufacturerCode

Returns the Manufacturer Code from the MEID.

MaximumCallComposerPictureSize

Indicates the maximum size of the call composure picture.

Meid

Returns the MEID (Mobile Equipment Identifier).

MmsUAProfUrl

Returns the MMS user agent profile URL.

MmsUserAgent

Returns the MMS user agent.

Nai

Returns the Network Access Identifier (NAI).

NeighboringCellInfo

Returns the neighboring cell information of the device.

NetworkCountryIso

Returns the ISO-3166-1 alpha-2 country code equivalent of the MCC (Mobile Country Code) of the current registered operator or the cell nearby, if available.

NetworkOperator

Returns the numeric name (MCC+MNC) of current registered operator.

NetworkOperatorName

Returns the alphabetic name of current registered operator.

NetworkSelectionMode

Get the network selection mode.

NetworkSpecifier

Returns the network specifier of the subscription ID pinned to the TelephonyManager.

NetworkType

Return the current data network type.

PeerReference (Inherited from Object)
PhoneAccountHandle

Determines the PhoneAccountHandle associated with this TelephonyManager.

PhoneCount

Returns the number of phones available.

PhoneType

Returns a constant indicating the device phone type.

PreferredOpportunisticDataSubscription

Get preferred opportunistic data subscription Id

PrimaryImei

Returns the primary IMEI (International Mobile Equipment Identity) of the device as mentioned in GSMA TS.

ServiceState

Returns the current ServiceState information.

SignalStrength

Get the most recently available signal strength information.

SimCarrierId

Returns carrier id of the current subscription.

SimCarrierIdName
SimCarrierIdNameFormatted

Returns carrier id name of the current subscription.

SimCountryIso

Returns the ISO-3166-1 alpha-2 country code equivalent for the SIM provider's country code.

SimOperator

Returns the MCC+MNC (mobile country code + mobile network code) of the provider of the SIM.

SimOperatorName

Returns the Service Provider Name (SPN).

SimSerialNumber

Returns the serial number of the SIM, if applicable.

SimSpecificCarrierId

Returns fine-grained carrier ID of the current subscription.

SimSpecificCarrierIdName
SimSpecificCarrierIdNameFormatted

Similar like #getSimCarrierIdName(), returns user-facing name of the specific carrier id returned by #getSimSpecificCarrierId().

SimState

Returns a constant indicating the state of the default SIM card.

SubscriberId

Returns the unique subscriber ID, for example, the IMSI for a GSM phone.

SubscriptionId

Return an appropriate subscription ID for any situation.

SupportedModemCount

Return how many logical modem can be potentially active simultaneously, in terms of hardware capability.

SupportedRadioAccessFamily
ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

TypeAllocationCode

Returns the Type Allocation Code from the IMEI.

UiccCardsInfo

Gets information about currently inserted UICCs and eUICCs.

VisualVoicemailPackageName

Returns the package responsible of processing visual voicemail for the subscription ID pinned to the TelephonyManager.

VoiceMailAlphaTag

Enables the visual voicemail SMS filter for a phone account.

VoiceMailNumber

Returns the voice mail number.

VoiceNetworkType

Returns the NETWORK_TYPE_xxxx for voice

Methods

CanChangeDtmfToneLength()

Whether the device supports configuring the DTMF tone length.

ClearSignalStrengthUpdateRequest(SignalStrengthUpdateRequest)

Clear a SignalStrengthUpdateRequest from the system.

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
CreateForPhoneAccountHandle(PhoneAccountHandle)

Create a new TelephonyManager object pinned to the subscription ID associated with the given phone account.

CreateForSubscriptionId(Int32)

Create a new TelephonyManager object pinned to the given subscription ID.

Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
DoesSwitchMultiSimConfigTriggerReboot()

Get whether making changes to modem configurations by #switchMultiSimConfig(int) will trigger device reboot.

Equals(Object)

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

(Inherited from Object)
FromContext(Context)
GetAllowedNetworkTypesForReason(Int32)

Get the allowed network types for certain reason.

GetCarrierRestrictionStatus(IExecutor, IConsumer)

Get the carrier restriction status of the device.

GetDeviceId(Int32)

Returns the unique device ID of a subscription, for example, the IMEI for GSM and the MEID for CDMA phones.

GetEmergencyNumberList(Int32)

Get the per-category emergency number list based on current locale, sim, default, modem and network.

GetForbiddenPlmns()

Returns an array of Forbidden PLMNs from the USIM App Returns null if the query fails.

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
GetIccAuthentication(UiccApplicationType, AutheenticationType, String)

Returns the response of authentication for the default subscription.

GetImei(Int32)

Returns the IMEI (International Mobile Equipment Identity).

GetManufacturerCode(Int32)

Returns the Manufacturer Code from the MEID.

GetMeid(Int32)

Returns the MEID (Mobile Equipment Identifier).

GetNetworkCountryIso(Int32)

Returns the ISO-3166-1 alpha-2 country code equivalent of the MCC (Mobile Country Code) of the current registered operator or the cell nearby, if available.

GetNetworkSlicingConfiguration(IExecutor, IOutcomeReceiver)

Request to get the current slicing configuration including URSP rules and NSSAIs (configured, allowed and rejected).

GetServiceState(Int32)

Returns the current ServiceState information.

GetSimState(Int32)

Returns a constant indicating the state of the device SIM card in a logical slot.

GetSubscriptionId(PhoneAccountHandle)

Returns the subscription ID for the given phone account handle.

GetTypeAllocationCode(Int32)

Returns the Type Allocation Code from the IMEI.

GetVoicemailRingtoneUri(PhoneAccountHandle)

Returns the URI for the per-account voicemail ringtone set in Phone settings.

IccCloseLogicalChannel(Int32)

Closes a previously opened logical channel to the ICC card.

IccExchangeSimIO(Int32, Int32, Int32, Int32, Int32, String)

Returns the response APDU for a command APDU sent through SIM_IO.

IccOpenLogicalChannel(String, Int32)

Opens a logical channel to the ICC card.

IccOpenLogicalChannel(String)

Opens a logical channel to the ICC card.

IccTransmitApduBasicChannel(Int32, Int32, Int32, Int32, Int32, String)

Transmit an APDU to the ICC card over the basic channel.

IccTransmitApduLogicalChannel(Int32, Int32, Int32, Int32, Int32, Int32, String)

Transmit an APDU to the ICC card over a logical channel.

IsDataEnabledForReason(Int32)

Return whether data is enabled for certain reason .

IsEmergencyNumber(String)

Identifies if the supplied phone number is an emergency number that matches a known emergency number based on current locale, SIM card(s), Android database, modem, network, or defaults.

IsModemEnabledForSlot(Int32)

Indicates whether or not there is a modem stack enabled for the given SIM slot.

IsMultiSimSupported()

Returns if the usage of multiple SIM cards at the same time to register on the network (e.

IsPremiumCapabilityAvailableForPurchase(PremiumCapability)

Check whether the given premium capability is available for purchase from the carrier.

IsRadioInterfaceCapabilitySupported(String)

Whether the device supports a given capability on the radio interface.

IsVoicemailVibrationEnabled(PhoneAccountHandle)

Returns whether vibration is set for voicemail notification in Phone settings.

JavaFinalize()

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

(Inherited from Object)
Listen(PhoneStateListener, PhoneStateListenerFlags)

Registers a listener object to receive notification of changes in specified telephony states.

Notify()

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

(Inherited from Object)
NotifyAll()

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

(Inherited from Object)
PurchasePremiumCapability(PremiumCapability, IExecutor, IConsumer)

Purchase the given premium capability from the carrier.

RebootModem()

Generate a radio modem reset.

RegisterTelephonyCallback(IExecutor, TelephonyCallback)

Registers a callback object to receive notification of changes in specified telephony states.

RegisterTelephonyCallback(Int32, IExecutor, TelephonyCallback)

Registers a callback object to receive notification of changes in specified telephony states.

RequestCellInfoUpdate(IExecutor, TelephonyManager+CellInfoCallback)
RequestNetworkScan(Int32, NetworkScanRequest, IExecutor, TelephonyScanManager+NetworkScanCallback)
RequestNetworkScan(NetworkScanRequest, IExecutor, TelephonyScanManager+NetworkScanCallback)
SendDialerSpecialCode(String)

Send the special dialer code.

SendEnvelopeWithStatus(String)

Send ENVELOPE to the SIM and return the response.

SendUssdRequest(String, TelephonyManager+UssdResponseCallback, Handler)

Sends an Unstructured Supplementary Service Data (USSD) request to the mobile network and informs the caller of the response via the supplied callback.

SendVisualVoicemailSms(String, Int32, String, PendingIntent)

Send a visual voicemail SMS.

SetAllowedNetworkTypesForReason(Int32, Int64)

Set the allowed network types of the device and provide the reason triggering the allowed network change.

SetDataEnabledForReason(Int32, Boolean)

Control of data connection and provide the reason triggering the data connection control.

SetForbiddenPlmns(IList<String>)

Replace the contents of the forbidden PLMN SIM file with the provided values.

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetLine1NumberForDisplay(String, String)

Set the line 1 phone number string and its alphatag for the current ICCID for display purpose only, for example, displayed in Phone Status.

SetNetworkSelectionModeAutomatic()

Sets the network selection mode to automatic.

SetNetworkSelectionModeManual(String, Boolean, Int32)

Ask the radio to connect to the input network and change selection mode to manual.

SetNetworkSelectionModeManual(String, Boolean)

Ask the radio to connect to the input network and change selection mode to manual.

SetOperatorBrandOverride(String)

Override the branding for the current ICCID.

SetPreferredNetworkTypeToGlobal()

Set the preferred network type to global mode which includes NR, LTE, CDMA, EvDo and GSM/WCDMA.

SetPreferredOpportunisticDataSubscription(Int32, Boolean, IExecutor, IConsumer)

Set preferred opportunistic data subscription id.

SetSignalStrengthUpdateRequest(SignalStrengthUpdateRequest)

Set a SignalStrengthUpdateRequest to receive notification when signal quality measurements breach the specified thresholds.

SetVisualVoicemailSmsFilterSettings(VisualVoicemailSmsFilterSettings)

Set the visual voicemail SMS filter settings for the subscription ID pinned to the TelephonyManager.

SetVoiceMailNumber(String, String)

Sets the voice mail number.

SetVoicemailRingtoneUri(PhoneAccountHandle, Uri)

Sets the per-account voicemail ringtone.

SetVoicemailVibrationEnabled(PhoneAccountHandle, Boolean)

Sets the per-account preference whether vibration is enabled for voicemail notifications.

SwitchMultiSimConfig(Int32)

Switch configs to enable multi-sim or switch back to single-sim

ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
UnregisterTelephonyCallback(TelephonyCallback)

Unregister an existing TelephonyCallback.

UpdateAvailableNetworks(IList<AvailableNetworkInfo>, IExecutor, IConsumer)

Update availability of a list of networks in the current location.

UploadCallComposerPicture(IPath, String, IExecutor, IOutcomeReceiver)

Uploads a picture to the carrier network for use with call composer.

UploadCallComposerPicture(Stream, String, IExecutor, IOutcomeReceiver)

Uploads a picture to the carrier network for use with call composer.

Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

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

(Inherited from Object)
Wait(Int64)

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

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to