Most visited

Recently visited

Added in API level 19

Telephony.Carriers

public static final class Telephony.Carriers
extends Object implements BaseColumns

java.lang.Object
   ↳ android.provider.Telephony.Carriers


Carriers class contains information about APNs, including MMSC information.

Summary

Constants

String APN

APN name.

String AUTH_TYPE

Authentication type.

String BEARER

Radio Access Technology info.

String CARRIER_ENABLED

Is this APN enabled?

Type: INTEGER (boolean)

String CURRENT

Is this the current APN?

Type: INTEGER (boolean)

String DEFAULT_SORT_ORDER

The default sort order for this table.

String MCC

Mobile Country Code (MCC).

String MMSC

MMSC URL.

String MMSPORT

MMS proxy port.

String MMSPROXY

MMS proxy address.

String MNC

Mobile Network Code (MNC).

String MVNO_MATCH_DATA

MVNO data.

String MVNO_TYPE

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

String NAME

Entry name.

String NUMERIC

Numeric operator ID (as String).

String PASSWORD

APN password.

String PORT

Proxy port.

String PROTOCOL

The protocol to use to connect to this APN.

String PROXY

Proxy address.

String ROAMING_PROTOCOL

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

String SERVER

Server address.

String SUBSCRIPTION_ID

The subscription to which the APN belongs to

Type: INTEGER (long)

String TYPE

Comma-delimited list of APN types.

String USER

APN username.

Inherited constants

From interface android.provider.BaseColumns

Fields

public static final Uri CONTENT_URI

The content:// style URL for this table.

Inherited methods

From class java.lang.Object

Constants

APN

Added in API level 19
String APN

APN name.

Type: TEXT

Constant Value: "apn"

AUTH_TYPE

Added in API level 19
String AUTH_TYPE

Authentication type.

Type: INTEGER

Constant Value: "authtype"

BEARER

Added in API level 19
String BEARER

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

Type: INTEGER

Constant Value: "bearer"

CARRIER_ENABLED

Added in API level 19
String CARRIER_ENABLED

Is this APN enabled?

Type: INTEGER (boolean)

Constant Value: "carrier_enabled"

CURRENT

Added in API level 19
String CURRENT

Is this the current APN?

Type: INTEGER (boolean)

Constant Value: "current"

DEFAULT_SORT_ORDER

Added in API level 19
String DEFAULT_SORT_ORDER

The default sort order for this table.

Constant Value: "name ASC"

MCC

Added in API level 19
String MCC

Mobile Country Code (MCC).

Type: TEXT

Constant Value: "mcc"

MMSC

Added in API level 19
String MMSC

MMSC URL.

Type: TEXT

Constant Value: "mmsc"

MMSPORT

Added in API level 19
String MMSPORT

MMS proxy port.

Type: TEXT

Constant Value: "mmsport"

MMSPROXY

Added in API level 19
String MMSPROXY

MMS proxy address.

Type: TEXT

Constant Value: "mmsproxy"

MNC

Added in API level 19
String MNC

Mobile Network Code (MNC).

Type: TEXT

Constant Value: "mnc"

MVNO_MATCH_DATA

Added in API level 19
String MVNO_MATCH_DATA

MVNO data. Use the following examples.

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

Type: TEXT

Constant Value: "mvno_match_data"

MVNO_TYPE

Added in API level 19
String MVNO_TYPE

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

Type: TEXT

Constant Value: "mvno_type"

NAME

Added in API level 19
String NAME

Entry name.

Type: TEXT

Constant Value: "name"

NUMERIC

Added in API level 19
String NUMERIC

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

Type: TEXT

Constant Value: "numeric"

PASSWORD

Added in API level 19
String PASSWORD

APN password.

Type: TEXT

Constant Value: "password"

PORT

Added in API level 19
String PORT

Proxy port.

Type: TEXT

Constant Value: "port"

PROTOCOL

Added in API level 19
String PROTOCOL

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

Constant Value: "protocol"

PROXY

Added in API level 19
String PROXY

Proxy address.

Type: TEXT

Constant Value: "proxy"

ROAMING_PROTOCOL

Added in API level 19
String ROAMING_PROTOCOL

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

Type: TEXT

Constant Value: "roaming_protocol"

SERVER

Added in API level 19
String SERVER

Server address.

Type: TEXT

Constant Value: "server"

SUBSCRIPTION_ID

Added in API level 22
String SUBSCRIPTION_ID

The subscription to which the APN belongs to

Type: INTEGER (long)

Constant Value: "sub_id"

TYPE

Added in API level 19
String TYPE

Comma-delimited list of APN types.

Type: TEXT

Constant Value: "type"

USER

Added in API level 19
String USER

APN username.

Type: TEXT

Constant Value: "user"

Fields

CONTENT_URI

Added in API level 19
Uri CONTENT_URI

The content:// style URL for this table.

Hooray!