to top
AFEX APIs
public class

MobileApnConfig

extends Object
implements Parcelable
java.lang.Object
   ↳ com.ardic.android.parcelables.MobileApnConfig

Class Overview

Implementation of Parcelable Interface for Mobile Internet Connection Configuration

See also:

Summary

Nested Classes
enum MobileApnConfig.AuthType Enumerates Authentication Types  
enum MobileApnConfig.BearerType Enumerates Bearer Types  
[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<MobileApnConfig> CREATOR
Public Constructors
MobileApnConfig(long netId, String name, String mcc, String mnc, String apn, String user, String server, String password, String proxy, String port, String mmsProxy, String mmsPort, String mmsc, MobileApnConfig.AuthType authType, String type, String protocol, String roamingProtocol, MobileApnConfig.BearerType bearer)
Constructor method for Mobile AP (Access Point)Configuration.
MobileApnConfig(String name, String mcc, String mnc, String apn, String user, String server, String password, String proxy, String port, String mmsProxy, String mmsPort, String mmsc, MobileApnConfig.AuthType authType, String type, String protocol, String roamingProtocol, MobileApnConfig.BearerType bearer)
Constructor method for Mobile APN Configuration.
Public Methods
int describeContents()
String getApn()
Returns Mobile Access Point name
MobileApnConfig.AuthType getAuthType()
Returns Authentication Type
MobileApnConfig.BearerType getBearer()
Returns bearer
String getMcc()
Returns MCC Mobile country code
String getMmsPort()
Returns Multimedia Messaging Service Port number
String getMmsProxy()
Returns Multimedia Messaging Service Proxy address
String getMmsc()
Returns MMSC Multimedia Messaging Service Centre
String getMnc()
Returns Mobile Network Code
String getName()
Returns User defined Access Point name
long getNetId()
Returns Network Id
String getPassword()
Returns User password
String getPort()
Returns Port number
String getProtocol()
Returns MMS protocol
String getProxy()
Returns Proxy address
String getRoamingProtocol()
Returns Roaming Protocol
String getServer()
Returns Server address
String getType()
Returns Mobile Access Point Type
String getUser()
Returns Mobile User name
void setApn(String apn)
Sets Mobile Access Point name
void setAuthType(MobileApnConfig.AuthType authType)
Sets Authentication Type
void setBearer(MobileApnConfig.BearerType bearer)
Sets Bearer
void setMcc(String mcc)
Sets MCC Mobile Country Code
void setMmsPort(String mmsPort)
Sets Multimedia Messaging Service Port number
void setMmsProxy(String mmsProxy)
Sets Multimedia Messaging Service Proxy address
void setMmsc(String mmsc)
Sets MMSC Multimedia Messaging Service Centre
void setMnc(String mnc)
Sets MNC Mobile Network Code
void setName(String name)
Sets user given Mobile APN
void setPassword(String password)
Sets User password
void setPort(String port)
Sets Port number
void setProtocol(String protocol)
Sets MMS Protocol
void setProxy(String proxy)
Sets Proxy address
void setRoamingProtocol(String roamingProtocol)
Sets Roaming Protocol
void setServer(String server)
Sets Server address
void setType(String type)
Sets Mobile Access Point Type
void setUser(String user)
Sets Mobile Access Point user name
void writeToParcel(Parcel dest, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public static final Creator<MobileApnConfig> CREATOR

Added in API level 1

Public Constructors

public MobileApnConfig (long netId, String name, String mcc, String mnc, String apn, String user, String server, String password, String proxy, String port, String mmsProxy, String mmsPort, String mmsc, MobileApnConfig.AuthType authType, String type, String protocol, String roamingProtocol, MobileApnConfig.BearerType bearer)

Added in API level 1

Constructor method for Mobile AP (Access Point)Configuration.

Parameters
netId long: Network Id.
name String: Mobile Access Point Name. This value can not be empty.
mcc String: Mobile Country Code
mnc String: Mobile Network Code
apn String: Mobile Access Point APN setting. This value can not be empty.
user String: Mobile Access Point user name
server String: Server address
password String: Mobile Access Point password
proxy String: Proxy address
port String: Port number
mmsProxy String: Multimedia Messaging Service Proxy address
mmsPort String: Multimedia Messaging Service Port number
mmsc String: Multimedia Messaging Service Centre, MMS store and forward server address
authType MobileApnConfig.AuthType: Authentication Type
type String: Type
protocol String: Multimedia Messaging Service protocol
roamingProtocol String: Roaming protocol
bearer MobileApnConfig.BearerType: bearer

public MobileApnConfig (String name, String mcc, String mnc, String apn, String user, String server, String password, String proxy, String port, String mmsProxy, String mmsPort, String mmsc, MobileApnConfig.AuthType authType, String type, String protocol, String roamingProtocol, MobileApnConfig.BearerType bearer)

Added in API level 1

Constructor method for Mobile APN Configuration.

Parameters
name String: Mobile Access Point Name. This value can not be empty.
mcc String: Mobile Country Code
mnc String: Mobile Network Code
apn String: Mobile Access Point APN setting. This value can not be empty.
user String: Mobile Access Point user name
server String: Server address
password String: Mobile Access Point password
proxy String: Proxy address
port String: Port number
mmsProxy String: Multimedia Messaging Service Proxy address
mmsPort String: Multimedia Messaging Service Port number
mmsc String: Multimedia Messaging Service Centre, MMS store and forward server address
authType MobileApnConfig.AuthType: Authentication Type
type String: Type
protocol String: Multimedia Messaging Service protocol
roamingProtocol String: Roaming protocol
bearer MobileApnConfig.BearerType: bearer

Public Methods

public int describeContents ()

Added in API level 1

Returns
int

public String getApn ()

Added in API level 1

Returns Mobile Access Point name

Returns
String apn Mobile Access Point name

public MobileApnConfig.AuthType getAuthType ()

Added in API level 1

Returns Authentication Type

Returns
MobileApnConfig.AuthType authType Authentication Type

public MobileApnConfig.BearerType getBearer ()

Added in API level 1

Returns bearer

Returns
MobileApnConfig.BearerType bearer Bearer

public String getMcc ()

Added in API level 1

Returns MCC Mobile country code

Returns
String mmc Mobile country code

public String getMmsPort ()

Added in API level 1

Returns Multimedia Messaging Service Port number

Returns
String mmsPort Multimedia Messaging Service Port number

public String getMmsProxy ()

Added in API level 1

Returns Multimedia Messaging Service Proxy address

Returns
String mmsProxy Multimedia Messaging Service Proxy address

public String getMmsc ()

Added in API level 1

Returns MMSC Multimedia Messaging Service Centre

Returns
String mmsc MMSC store and forward server address

public String getMnc ()

Added in API level 1

Returns Mobile Network Code

Returns
String mnc Mobile Network Code

public String getName ()

Added in API level 1

Returns User defined Access Point name

Returns
String name user defined Access Point name

public long getNetId ()

Added in API level 1

Returns Network Id

Returns
long Network Id. Unique id given to the Mobile AP Configuration when inserted into Telephony Provider carriers table.

public String getPassword ()

Added in API level 1

Returns User password

Returns
String password user password

public String getPort ()

Added in API level 1

Returns Port number

Returns
String port Port number

public String getProtocol ()

Added in API level 1

Returns MMS protocol

Returns
String protocol MMS protocol

public String getProxy ()

Added in API level 1

Returns Proxy address

Returns
String proxy Proxy address

public String getRoamingProtocol ()

Added in API level 1

Returns Roaming Protocol

Returns
String roamingProtocol Roaming Protocol

public String getServer ()

Added in API level 1

Returns Server address

Returns
String server Server address

public String getType ()

Added in API level 1

Returns Mobile Access Point Type

Returns
String type Mobile Access Point Type

public String getUser ()

Added in API level 1

Returns Mobile User name

Returns
String user Mobile User Name

public void setApn (String apn)

Added in API level 1

Sets Mobile Access Point name

Parameters
apn String: Mobile Access Point name

public void setAuthType (MobileApnConfig.AuthType authType)

Added in API level 1

Sets Authentication Type

Parameters
authType MobileApnConfig.AuthType: Authentication Type

public void setBearer (MobileApnConfig.BearerType bearer)

Added in API level 1

Sets Bearer

Parameters
bearer MobileApnConfig.BearerType: Bearer

public void setMcc (String mcc)

Added in API level 1

Sets MCC Mobile Country Code

Parameters
mcc String: MCC Mobile Country Code

public void setMmsPort (String mmsPort)

Added in API level 1

Sets Multimedia Messaging Service Port number

Parameters
mmsPort String: Multimedia Messaging Service Port number

public void setMmsProxy (String mmsProxy)

Added in API level 1

Sets Multimedia Messaging Service Proxy address

Parameters
mmsProxy String: Multimedia Messaging Service Proxy address

public void setMmsc (String mmsc)

Added in API level 1

Sets MMSC Multimedia Messaging Service Centre

Parameters
mmsc String: MMSC store and forward server address

public void setMnc (String mnc)

Added in API level 1

Sets MNC Mobile Network Code

Parameters
mnc String: MNC Mobile Network Code

public void setName (String name)

Added in API level 1

Sets user given Mobile APN

Parameters
name String: user defined APN

public void setPassword (String password)

Added in API level 1

Sets User password

Parameters
password String: User password

public void setPort (String port)

Added in API level 1

Sets Port number

Parameters
port String: Port number

public void setProtocol (String protocol)

Added in API level 1

Sets MMS Protocol

Parameters
protocol String: MMS Protocol

public void setProxy (String proxy)

Added in API level 1

Sets Proxy address

Parameters
proxy String: Proxy address

public void setRoamingProtocol (String roamingProtocol)

Added in API level 1

Sets Roaming Protocol

Parameters
roamingProtocol String: Roaming Protocol

public void setServer (String server)

Added in API level 1

Sets Server address

Parameters
server String: Server address

public void setType (String type)

Added in API level 1

Sets Mobile Access Point Type

Parameters
type String: Mobile Access Point Type

public void setUser (String user)

Added in API level 1

Sets Mobile Access Point user name

Parameters
user String: Mobile Access Point user name

public void writeToParcel (Parcel dest, int flags)

Added in API level 1

Parameters
dest Parcel
flags int