to top
Android APIs
public static final class

Telephony.Carriers

extends Object
implements BaseColumns
java.lang.Object
   ↳ android.provider.Telephony.Carriers

Class Overview

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 TYPE Comma-delimited list of APN types.
String USER APN username.
[Expand]
Inherited Constants
From interface android.provider.BaseColumns
Fields
public static final Uri CONTENT_URI The content:// style URL for this table.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String APN

Added in API level 19

APN name.

Type: TEXT

Constant Value: "apn"

public static final String AUTH_TYPE

Added in API level 19

Authentication type.

Type: INTEGER

Constant Value: "authtype"

public static final String BEARER

Added in API level 19

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"

public static final String CARRIER_ENABLED

Added in API level 19

Is this APN enabled?

Type: INTEGER (boolean)

Constant Value: "carrier_enabled"

public static final String CURRENT

Added in API level 19

Is this the current APN?

Type: INTEGER (boolean)

Constant Value: "current"

public static final String DEFAULT_SORT_ORDER

Added in API level 19

The default sort order for this table.

Constant Value: "name ASC"

public static final String MCC

Added in API level 19

Mobile Country Code (MCC).

Type: TEXT

Constant Value: "mcc"

public static final String MMSC

Added in API level 19

MMSC URL.

Type: TEXT

Constant Value: "mmsc"

public static final String MMSPORT

Added in API level 19

MMS proxy port.

Type: TEXT

Constant Value: "mmsport"

public static final String MMSPROXY

Added in API level 19

MMS proxy address.

Type: TEXT

Constant Value: "mmsproxy"

public static final String MNC

Added in API level 19

Mobile Network Code (MNC).

Type: TEXT

Constant Value: "mnc"

public static final String MVNO_MATCH_DATA

Added in API level 19

MVNO data. Use the following examples.

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

Type: TEXT

Constant Value: "mvno_match_data"

public static final String MVNO_TYPE

Added in API level 19

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

Type: TEXT

Constant Value: "mvno_type"

public static final String NAME

Added in API level 19

Entry name.

Type: TEXT

Constant Value: "name"

public static final String NUMERIC

Added in API level 19

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

Type: TEXT

Constant Value: "numeric"

public static final String PASSWORD

Added in API level 19

APN password.

Type: TEXT

Constant Value: "password"

public static final String PORT

Added in API level 19

Proxy port.

Type: TEXT

Constant Value: "port"

public static final String PROTOCOL

Added in API level 19

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"

public static final String PROXY

Added in API level 19

Proxy address.

Type: TEXT

Constant Value: "proxy"

public static final String ROAMING_PROTOCOL

Added in API level 19

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

Type: TEXT

Constant Value: "roaming_protocol"

public static final String SERVER

Added in API level 19

Server address.

Type: TEXT

Constant Value: "server"

public static final String TYPE

Added in API level 19

Comma-delimited list of APN types.

Type: TEXT

Constant Value: "type"

public static final String USER

Added in API level 19

APN username.

Type: TEXT

Constant Value: "user"

Fields

public static final Uri CONTENT_URI

Added in API level 19

The content:// style URL for this table.