Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
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

APN name.

Type: TEXT

Constant Value: "apn"

public static final String AUTH_TYPE

Authentication type.

Type: INTEGER

Constant Value: "authtype"

public static final 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"

public static final String CARRIER_ENABLED

Is this APN enabled?

Type: INTEGER (boolean)

Constant Value: "carrier_enabled"

public static final String CURRENT

Is this the current APN?

Type: INTEGER (boolean)

Constant Value: "current"

public static final String DEFAULT_SORT_ORDER

The default sort order for this table.

Constant Value: "name ASC"

public static final String MCC

Mobile Country Code (MCC).

Type: TEXT

Constant Value: "mcc"

public static final String MMSC

MMSC URL.

Type: TEXT

Constant Value: "mmsc"

public static final String MMSPORT

MMS proxy port.

Type: TEXT

Constant Value: "mmsport"

public static final String MMSPROXY

MMS proxy address.

Type: TEXT

Constant Value: "mmsproxy"

public static final String MNC

Mobile Network Code (MNC).

Type: TEXT

Constant Value: "mnc"

public static final 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"

public static final String MVNO_TYPE

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

Type: TEXT

Constant Value: "mvno_type"

public static final String NAME

Entry name.

Type: TEXT

Constant Value: "name"

public static final String NUMERIC

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

Type: TEXT

Constant Value: "numeric"

public static final String PASSWORD

APN password.

Type: TEXT

Constant Value: "password"

public static final String PORT

Proxy port.

Type: TEXT

Constant Value: "port"

public static final 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"

public static final String PROXY

Proxy address.

Type: TEXT

Constant Value: "proxy"

public static final 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"

public static final String SERVER

Server address.

Type: TEXT

Constant Value: "server"

public static final String TYPE

Comma-delimited list of APN types.

Type: TEXT

Constant Value: "type"

public static final String USER

APN username.

Type: TEXT

Constant Value: "user"

Fields

public static final Uri CONTENT_URI

The content:// style URL for this table.