public class ApnCtrl
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BUNDLE_ERROR_CODE |
static java.lang.String |
BUNDLE_ERROR_MSG |
static java.lang.String |
ERROR_UNSUPPORTED |
static int |
RESULT_CODE_ERROR |
static int |
RESULT_CODE_SUCCESS |
| Constructor and Description |
|---|
ApnCtrl(android.content.Context context)
Instantiates a new Apn ctrl.
|
| Modifier and Type | Method and Description |
|---|---|
android.os.Bundle |
ApnAddProfile(java.lang.String profileData)
Add Apn data
Apn profile contain {"_id","name","numeric","mcc","mnc","apn","user","server","password",
"proxy","port","mmsproxy","mmsport","mmsc","authtype","type","current",
"protocol","roaming_protocol","carrier_enabled","bearer","mvno_type","mvno_match_data"}
profile param need 22 item data without _id.
|
android.os.Bundle |
ApnDeleteAll()
Apn delete all bundle.
|
android.os.Bundle |
ApnDeleteProfile(java.lang.String apnName)
Apn delete profile.
|
android.os.Bundle |
ApnGetActivieProfileApnName()
Apn get activie profile apn name bundle.
|
android.os.Bundle |
ApnGetNameList()
Apn get name list bundle.
|
android.os.Bundle |
ApnGetProfile(java.lang.String apnName)
Apn get profile bundle.
|
android.os.Bundle |
ApnProfileIsExist(java.lang.String apnName)
Apn profile is exist.
|
android.os.Bundle |
ApnSetActiveProfile(java.lang.String apnName)
Apn set active profile bundle.
|
android.os.Bundle |
ApnUpdateProfile(java.lang.String profileData)
Apn update profile.
|
android.os.Bundle |
getActiveNetworkBearers()
get Active Network Bearers
|
android.os.Bundle |
getDefaultDataSubscriptionId()
Get Default Data Subscription ID
|
android.os.Bundle |
getSignalStrength()
Get Signal Strength in dbm unit
|
android.os.Bundle |
getSupportNetworkBearers()
Get Support Network Bearers
|
android.os.Bundle |
getWWANIpAddress()
Get WWAN IP Address
|
android.os.Bundle |
setAirplaneMode(boolean enabled)
Set airplane mode.
|
public static final java.lang.String BUNDLE_ERROR_CODE
public static final java.lang.String BUNDLE_ERROR_MSG
public static final java.lang.String ERROR_UNSUPPORTED
public static final int RESULT_CODE_ERROR
public static final int RESULT_CODE_SUCCESS
public ApnCtrl(android.content.Context context)
context - the contextpublic android.os.Bundle ApnAddProfile(java.lang.String profileData)
profileData - example: kk;46692;466;92;internet;;;;;;;;;0;default,supl;1;IP;IP;1;0;; (String)public android.os.Bundle ApnDeleteProfile(java.lang.String apnName)
apnName - the apn name (String)public android.os.Bundle ApnProfileIsExist(java.lang.String apnName)
apnName - the apn name (String)public android.os.Bundle ApnUpdateProfile(java.lang.String profileData)
profileData - example: kk;46692;466;92;internet;;;;;;;;;0;default,supl;1;IP;IP;1;0;; (String)public android.os.Bundle ApnDeleteAll()
public android.os.Bundle ApnSetActiveProfile(java.lang.String apnName)
apnName - the apn name (String)public android.os.Bundle ApnGetActivieProfileApnName()
public android.os.Bundle ApnGetNameList()
public android.os.Bundle ApnGetProfile(java.lang.String apnName)
apnName - the apn name (String)public android.os.Bundle setAirplaneMode(boolean enabled)
enabled - true or false (boolean)public android.os.Bundle getActiveNetworkBearers()
public android.os.Bundle getWWANIpAddress()
public android.os.Bundle getSignalStrength()
public android.os.Bundle getDefaultDataSubscriptionId()
public android.os.Bundle getSupportNetworkBearers()