# Print output for @column tags ?>
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.
Constants | |
---|---|
String |
APN
APN name. |
String |
AUTH_TYPE
Authentication type. |
String |
BEARER
This constant is deprecated.
this column is no longer supported, use |
String |
CARRIER_ENABLED
Is this APN enabled? Type: INTEGER (boolean) |
String |
CARRIER_ID
A unique carrier id associated with this APN Type: STRING |
String |
CURRENT
Is this the current APN? Type: INTEGER (boolean) |
String |
DEFAULT_SORT_ORDER
The default sort order for this table. |
String |
MCC
This constant is deprecated.
Use |
String |
MMSC
MMSC URL. |
String |
MMSPORT
MMS proxy port. |
String |
MMSPROXY
MMS proxy address. |
String |
MNC
This constant is deprecated.
Use |
String |
MVNO_MATCH_DATA
This constant is deprecated.
Use |
String |
MVNO_TYPE
This constant is deprecated.
Use |
String |
NAME
Entry name. |
String |
NETWORK_TYPE_BITMASK
Radio technology (network type) bitmask. |
String |
NUMERIC
This constant is deprecated.
Use |
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 |
---|
Fields | |
---|---|
public
static
final
Uri |
CONTENT_URI
The |
public
static
final
Uri |
SIM_APN_URI
The |
Inherited methods | |
---|---|
public static final String AUTH_TYPE
Authentication type.
Type: INTEGER
Constant Value: "authtype"
public static final String BEARER
This constant is deprecated.
this column is no longer supported, use NETWORK_TYPE_BITMASK
instead
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 CARRIER_ID
A unique carrier id associated with this APN
Type: STRING
See also:
Constant Value: "carrier_id"
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
This constant is deprecated.
Use SIM_APN_URI
to query APN instead, this API will return
matching APNs based on current subscription carrier, thus no need to specify MCC and
other carrier matching information. In the future, Android will not support MCC for
APN query.
Mobile Country Code (MCC).
Type: TEXT
Constant Value: "mcc"
public static final String MMSPROXY
MMS proxy address.
Type: TEXT
Constant Value: "mmsproxy"
public static final String MNC
This constant is deprecated.
Use SIM_APN_URI
to query APN instead, this API will return
matching APNs based on current subscription carrier, thus no need to specify MNC and
other carrier matching information. In the future, Android will not support MNC for
APN query.
Mobile Network Code (MNC).
Type: TEXT
Constant Value: "mnc"
public static final String MVNO_MATCH_DATA
This constant is deprecated.
Use SIM_APN_URI
to query APN instead, this API will return
matching APNs based on current subscription carrier, thus no need to specify
MVNO_MATCH_DATA and other carrier matching information. In the future, Android will not
support MVNO_MATCH_DATA for APN query.
MVNO data. Use the following examples.
Type: TEXT
Constant Value: "mvno_match_data"
public static final String MVNO_TYPE
This constant is deprecated.
Use SIM_APN_URI
to query APN instead, this API will return
matching APNs based on current subscription carrier, thus no need to specify MVNO_TYPE
and other carrier matching information. In the future, Android will not support MVNO_TYPE
for APN query.
MVNO type:
SPN (Service Provider Name), IMSI, GID (Group Identifier Level 1)
.
Type: TEXT
Constant Value: "mvno_type"
public static final String NETWORK_TYPE_BITMASK
Radio technology (network type) bitmask.
To check what values can be contained, refer to the NETWORK_TYPE_ constants in
TelephonyManager
.
Bitmask for a radio tech R is (1 << (R - 1))
Type: INTEGER
Constant Value: "network_type_bitmask"
public static final String NUMERIC
This constant is deprecated.
Use SIM_APN_URI
to query APN instead, this API will return
matching APNs based on current subscription carrier, thus no need to specify Numeric
and other carrier matching information. In the future, Android will not support Numeric
for APN query.
Numeric operator ID (as String). Usually MCC + MNC
.
Type: TEXT
Constant Value: "numeric"
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 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 SUBSCRIPTION_ID
The subscription to which the APN belongs to
Type: INTEGER (long)
Constant Value: "sub_id"
public static final String TYPE
Comma-delimited list of APN types.
Type: TEXT
Constant Value: "type"
public static final Uri CONTENT_URI
The content://
style URL for this table.
For MSIM, this will return APNs for the default subscription
SubscriptionManager#getDefaultSubscriptionId()
. To specify subId for MSIM,
use Uri#withAppendedPath(Uri, String)
to append with subscription id.
public static final Uri SIM_APN_URI
The content://
style URL for this table. Used for APN query based on current
subscription. Instead of specifying carrier matching information in the selection,
this API will return all matching APNs from current subscription carrier and queries
will be applied on top of that. If there is no match for MVNO (Mobile Virtual Network
Operator) APNs, return APNs from its MNO (based on mccmnc) instead. For MSIM, this will
return APNs for the default subscription
SubscriptionManager#getDefaultSubscriptionId()
. To specify subId for MSIM,
use Uri#withAppendedPath(Uri, String)
to append with subscription id.