Carriers

class Carriers : BaseColumns
kotlin.Any
   ↳ android.provider.Telephony.Carriers

Carriers class contains information about APNs, including MMSC information.
Requires API level 19 (Android 4.4, KitKat)

Summary

Constants
static String

APN name.

static String

Authentication type.

static String

Radio Access Technology info.

static String

Is this APN enabled?

static String

Is this the current APN?

static String

The default sort order for this table.

static String

Mobile Country Code (MCC).

static String

MMSC URL.

static String

MMS proxy port.

static String

MMS proxy address.

static String

Mobile Network Code (MNC).

static String

MVNO data.

static String

MVNO type: SPN (Service Provider Name), IMSI, GID (Group Identifier Level 1).

static String

Entry name.

static String

Radio technology (network type) bitmask.

static String

Numeric operator ID (as String).

static String

APN password.

static String

Proxy port.

static String

The protocol to use to connect to this APN.

static String

Proxy address.

static String

The protocol to use to connect to this APN when roaming.

static String

Server address.

static String

The subscription to which the APN belongs to

static String

Comma-delimited list of APN types.

static String

APN username.

Inherited constants
Properties
static Uri!

The content:// style URL for this table.

Constants

APN

added in API level 19
static val APN: String

APN name.

Type: TEXT


Requires API level 19 (Android 4.4, KitKat)
Value: "apn"

AUTH_TYPE

added in API level 19
static val AUTH_TYPE: String

Authentication type.

Type: INTEGER


Requires API level 19 (Android 4.4, KitKat)
Value: "authtype"

BEARER

added in API level 19
static val BEARER: String

Radio Access Technology info. To check what values are allowed, refer to android.telephony.ServiceState. This should be spread to other technologies, but is currently only used for LTE (14) and eHRPD (13).

Type: INTEGER


Requires API level 19 (Android 4.4, KitKat)
Value: "bearer"

CARRIER_ENABLED

added in API level 19
static val CARRIER_ENABLED: String

Is this APN enabled?

Type: INTEGER (boolean)


Requires API level 19 (Android 4.4, KitKat)
Value: "carrier_enabled"

CURRENT

added in API level 19
static val CURRENT: String

Is this the current APN?

Type: INTEGER (boolean)


Requires API level 19 (Android 4.4, KitKat)
Value: "current"

DEFAULT_SORT_ORDER

added in API level 19
static val DEFAULT_SORT_ORDER: String

The default sort order for this table.
Requires API level 19 (Android 4.4, KitKat)

Value: "name ASC"

MCC

added in API level 19
static val MCC: String

Mobile Country Code (MCC).

Type: TEXT


Requires API level 19 (Android 4.4, KitKat)
Value: "mcc"

MMSC

added in API level 19
static val MMSC: String

MMSC URL.

Type: TEXT


Requires API level 19 (Android 4.4, KitKat)
Value: "mmsc"

MMSPORT

added in API level 19
static val MMSPORT: String

MMS proxy port.

Type: TEXT


Requires API level 19 (Android 4.4, KitKat)
Value: "mmsport"

MMSPROXY

added in API level 19
static val MMSPROXY: String

MMS proxy address.

Type: TEXT


Requires API level 19 (Android 4.4, KitKat)
Value: "mmsproxy"

MNC

added in API level 19
static val MNC: String

Mobile Network Code (MNC).

Type: TEXT


Requires API level 19 (Android 4.4, KitKat)
Value: "mnc"

MVNO_MATCH_DATA

added in API level 19
static val MVNO_MATCH_DATA: String

MVNO data. Use the following examples.

  • SPN: A MOBILE, BEN NL, ...
  • IMSI: 302720x94, 2060188, ...
  • GID: 4E, 33, ...

Type: TEXT


Requires API level 19 (Android 4.4, KitKat)
Value: "mvno_match_data"

MVNO_TYPE

added in API level 19
static val MVNO_TYPE: String

MVNO type: SPN (Service Provider Name), IMSI, GID (Group Identifier Level 1).

Type: TEXT


Requires API level 19 (Android 4.4, KitKat)
Value: "mvno_type"

NAME

added in API level 19
static val NAME: String

Entry name.

Type: TEXT


Requires API level 19 (Android 4.4, KitKat)
Value: "name"

NETWORK_TYPE_BITMASK

added in API level 28
static val NETWORK_TYPE_BITMASK: String

Radio technology (network type) bitmask. To check what values can be contained, refer to the NETWORK_TYPE_ constants in android.telephony.TelephonyManager. Bitmask for a radio tech R is (1 << (R - 1))

Type: INTEGER


Requires API level 28 (Android 8.+, P)
Value: "network_type_bitmask"

NUMERIC

added in API level 19
static val NUMERIC: String

Numeric operator ID (as String). Usually MCC + MNC.

Type: TEXT


Requires API level 19 (Android 4.4, KitKat)
Value: "numeric"

PASSWORD

added in API level 19
static val PASSWORD: String

APN password.

Type: TEXT


Requires API level 19 (Android 4.4, KitKat)
Value: "password"

PORT

added in API level 19
static val PORT: String

Proxy port.

Type: TEXT


Requires API level 19 (Android 4.4, KitKat)
Value: "port"

PROTOCOL

added in API level 19
static val PROTOCOL: String

The protocol to use to connect to this APN. One of the PDP_type values in TS 27.007 section 10.1.1. For example: IP, IPV6, IPV4V6, or PPP.

Type: TEXT


Requires API level 19 (Android 4.4, KitKat)
Value: "protocol"

PROXY

added in API level 19
static val PROXY: String

Proxy address.

Type: TEXT


Requires API level 19 (Android 4.4, KitKat)
Value: "proxy"

ROAMING_PROTOCOL

added in API level 19
static val ROAMING_PROTOCOL: String

The protocol to use to connect to this APN when roaming. The syntax is the same as protocol.

Type: TEXT


Requires API level 19 (Android 4.4, KitKat)
Value: "roaming_protocol"

SERVER

added in API level 19
static val SERVER: String

Server address.

Type: TEXT


Requires API level 19 (Android 4.4, KitKat)
Value: "server"

SUBSCRIPTION_ID

added in API level 22
static val SUBSCRIPTION_ID: String

The subscription to which the APN belongs to

Type: INTEGER (long)


Requires API level 22 (Android 5.1, Lollipop)
Value: "sub_id"

TYPE

added in API level 19
static val TYPE: String

Comma-delimited list of APN types.

Type: TEXT


Requires API level 19 (Android 4.4, KitKat)
Value: "type"

USER

added in API level 19
static val USER: String

APN username.

Type: TEXT


Requires API level 19 (Android 4.4, KitKat)
Value: "user"

Properties

CONTENT_URI

added in API level 19
static val CONTENT_URI: Uri!

The content:// style URL for this table.
Requires API level 19 (Android 4.4, KitKat)