public class

ApnSettings

extends Object
implements Parcelable
java.lang.Object
   ↳ com.samsung.android.knox.net.apn.ApnSettings

Class Overview

This class contains all the information for given APN settings.

Since
API level 2
MDM 2.0

Summary

Constants
String MVNO_GID Constant to indicate the APN has MVNO (Mobile Virtual Network Operator) type for group identifier level 1.
String MVNO_IMSI Constant to indicate the APN has MVNO (Mobile Virtual Network Operator) type for IMSI.
String MVNO_SPN Constant to indicate the APN has MVNO (Mobile Virtual Network Operator) type for service provider name.
String PROTOCOL_IPV4 Constant to indicate the APN should use only IP protocol v4.
String PROTOCOL_IPV4_IPV6 Constant to indicate the APN can use both IP protocol v4 and v6.
String PROTOCOL_IPV6 Constant to indicate the APN should use only IP protocol v6.
[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public String apn Access Point Name
public int authType Authentication type
  • Value -1 - Not set
  • Value 0 - None
  • Value 1 - PAP
  • Value 2 - CHAP
  • Value 3 - PAP or CHAP
public long id Unique ID
public String mcc Mobile Country Code
public String mmsPort MMS port number
public String mmsProxy MMS proxy address
public String mmsc MMS server address
public String mnc Mobile Network Code
public String mvno_type MVNO type for the APN.
public String mvno_value MVNO value for a specific mvno_type
public String name User-friendly name
public String password User password
public int port Port number
public String protocol Protocol Default value is PROTOCOL_IPV4.
public String proxy Proxy address
public String roamingProtocol Roaming protocol Default value is PROTOCOL_IPV4.
public String server Server address
public String type Access Point type Accepted types are "default", "mms", and "supl".
public String user Username
Public Constructors
ApnSettings()
Default constructor
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Constants

public static final String MVNO_GID

Since: API level 28

Constant to indicate the APN has MVNO (Mobile Virtual Network Operator) type for group identifier level 1.

Since
API level 29
Knox 3.4
Constant Value: "gid"

public static final String MVNO_IMSI

Since: API level 28

Constant to indicate the APN has MVNO (Mobile Virtual Network Operator) type for IMSI.

Since
API level 29
Knox 3.4
Constant Value: "imsi"

public static final String MVNO_SPN

Since: API level 28

Constant to indicate the APN has MVNO (Mobile Virtual Network Operator) type for service provider name.

Since
API level 29
Knox 3.4
Constant Value: "spn"

public static final String PROTOCOL_IPV4

Since: API level 20

Constant to indicate the APN should use only IP protocol v4.

Since
API level 20
MDM 5.7
Constant Value: "IP"

public static final String PROTOCOL_IPV4_IPV6

Since: API level 20

Constant to indicate the APN can use both IP protocol v4 and v6.

Since
API level 20
MDM 5.7
Constant Value: "IPV4V6"

public static final String PROTOCOL_IPV6

Since: API level 20

Constant to indicate the APN should use only IP protocol v6.

Since
API level 20
MDM 5.7
Constant Value: "IPV6"

Fields

public String apn

Since: API level 2

Access Point Name

Since
API level 2
MDM 2.0

public int authType

Since: API level 2

Authentication type

  • Value -1 - Not set
  • Value 0 - None
  • Value 1 - PAP
  • Value 2 - CHAP
  • Value 3 - PAP or CHAP

Since
API level 2
MDM 2.0

public long id

Since: API level 2

Unique ID

Since
API level 2
MDM 2.0

public String mcc

Since: API level 2

Mobile Country Code

Since
API level 2
MDM 2.0

public String mmsPort

Since: API level 2

MMS port number

Since
API level 2
MDM 2.0

public String mmsProxy

Since: API level 2

MMS proxy address

Since
API level 2
MDM 2.0

public String mmsc

Since: API level 2

MMS server address

Since
API level 2
MDM 2.0

public String mnc

Since: API level 2

Mobile Network Code

Since
API level 2
MDM 2.0

public String mvno_type

Since: API level 28

MVNO type for the APN.

Default value is empty String.

Since
API level 29
Knox 3.4

public String mvno_value

Since: API level 28

MVNO value for a specific mvno_type

Since
API level 29
Knox 3.4

public String name

Since: API level 2

User-friendly name

Since
API level 2
MDM 2.0

public String password

Since: API level 2

User password

Since
API level 2
MDM 2.0

public int port

Since: API level 2

Port number

Since
API level 2
MDM 2.0

public String protocol

Since: API level 20
Since
API level 20
MDM 5.7

public String proxy

Since: API level 2

Proxy address

Since
API level 2
MDM 2.0

public String roamingProtocol

Since: API level 20

Roaming protocol

Default value is PROTOCOL_IPV4.

Since
API level 20
MDM 5.7

public String server

Since: API level 2

Server address

Since
API level 2
MDM 2.0

public String type

Since: API level 2

Access Point type Accepted types are "default", "mms", and "supl". If the Access Point type isn't defined,by default, "default,supl,mms" is used.

Since
API level 2
MDM 2.0

public String user

Since: API level 2

Username

Since
API level 2
MDM 2.0

Public Constructors

public ApnSettings ()

Since: API level 2

Default constructor

Since
API level 2
MDM 2.0