TelephonyManager

Class of android.telephony · TelephonyManager.java · Android's reference

public class TelephonyManager

The phone: a device without one (Off in docs/platforms/android-apps/interfaces.md), as a tablet without a modem reports it. The device identifiers need a privileged permission since Android 10, so they throw for an app as there.

Nested types

Fields

public static final int PHONE_TYPE_NONE = 0 source
public static final int PHONE_TYPE_GSM = 1 source
public static final int PHONE_TYPE_CDMA = 2 source
public static final int PHONE_TYPE_SIP = 3 source
public static final int SIM_STATE_UNKNOWN = 0 source
public static final int SIM_STATE_ABSENT = 1 source
public static final int SIM_STATE_READY = 5 source
public static final int NETWORK_TYPE_UNKNOWN = 0 source
public static final int DATA_ACTIVITY_NONE = 0 source
public static final int DATA_DISCONNECTED = 0 source
public static final int CALL_STATE_IDLE = 0 source

Constructors

public TelephonyManager() empty body source

Methods

public String getDeviceId() source
public String getDeviceId(int slotIndex) source
public String getImei() source
public String getImei(int slotIndex) source
public String getSubscriberId() source
public String getLine1Number() source
public int getPhoneType() source
public int getSimState() source
public int getSimState(int slotIndex) source
public String getSimOperator() source
public String getSimOperatorName() source
public String getSimCountryIso() source
public String getNetworkOperator() source
public String getNetworkOperatorName() source
public String getNetworkCountryIso() source
public int getNetworkType() source
public int getDataNetworkType() source
public int getDataActivity() source
public int getDataState() source
public int getCallState() source
public int getSubscriptionId() source
public int getPhoneCount() source
public boolean isNetworkRoaming() source
public boolean hasIccCard() source
public boolean isVoiceCapable() source
public boolean isSmsCapable() source
public SignalStrength getSignalStrength() source
public TelephonyManager createForSubscriptionId(int subId) source
public void listen(PhoneStateListener listener, int events) empty body deprecated source
public void requestCellInfoUpdate(Executor executor, CellInfoCallback callback) source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.