Java android.telephony SubscriptionManager fields, constructors, methods, implement or subclass

Example usage for Java android.telephony SubscriptionManager fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.telephony SubscriptionManager.

The text is from its open source code.

Field

intINVALID_SUBSCRIPTION_ID
An invalid subscription identifier
intSIM_NOT_INSERTED
intDATA_ROAMING_ENABLE
Indicates that data roaming is enabled for a subscription

Method

SubscriptionManagerfrom(Context context)
SubscriptionInfogetActiveSubscriptionInfo(int subId)
Get the active SubscriptionInfo with the input subId.
intgetActiveSubscriptionInfoCount()
Requires Permission: android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE or that the calling app has carrier privileges (see TelephonyManager#hasCarrierPrivileges ).
intgetActiveSubscriptionInfoCountMax()
ListgetActiveSubscriptionInfoList()
Get the SubscriptionInfo(s) of the currently active SIM(s).
intgetDefaultDataSubscriptionId()
Returns the system's default data subscription id.
intgetDefaultSmsSubscriptionId()
Returns the system's default SMS subscription id.
intgetDefaultVoiceSubscriptionId()
Returns the system's default voice subscription id.
intgetPhoneId(int subId)
booleanisNetworkRoaming(int subId)
Returns true if the device is considered roaming on the current network for a subscription.
booleanisUsableSubIdValue(int subId)
voidremoveOnSubscriptionsChangedListener(OnSubscriptionsChangedListener listener)
Unregister the OnSubscriptionsChangedListener .