com.ardic.android.managers.telephonyconfig.ITelephonyConfigManager |
Provides set of API for Cellular networking related configuration adjustment.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the list of the Mobile APN configurations for given country from carriers table of
Telephony Provider in Android.
| |||||||||||
Returns the configuration of the Mobile APN from carriers table of Telephony Provider in
Android.
| |||||||||||
Returns Preferred Cellular Mobile Network configuration.
| |||||||||||
Returns whether Data Roaming is blocked or not.
| |||||||||||
Returns whether Data Roaming is enabled or not.
| |||||||||||
Returns whether Download Over Mobile is blocked.
| |||||||||||
Return whether Mobile Data is blocked or unblocked.
| |||||||||||
Gets the value of the setting for enabling Mobile Data.
| |||||||||||
Returns whether Mobile Data connection state change is blocked or not.
| |||||||||||
Return whether Preferred Cellular Mobile Network configuration change is blocked or not.
| |||||||||||
Returns whether receiving sms is blocked or not on system wide level.
| |||||||||||
Returns whether sending sms is blocked or not on system wide level.
| |||||||||||
Deletes Cellular Mobile Network configuration.
| |||||||||||
Saves Cellular Mobile Network configuration.
| |||||||||||
Sets/Resets Data Roaming Blocked.
| |||||||||||
Sets/Resets Data Roaming Enabled.
| |||||||||||
Sets/Resets Download Over Mobile connection blocking.
| |||||||||||
Sets Mobile Data availability to blocked.
| |||||||||||
Sets the persisted value for enabling/disabling Mobile data.
| |||||||||||
Disables the ability to change Mobile Data state.
| |||||||||||
Sets Preferred Cellular Mobile Network configuration.
| |||||||||||
Sets Preferred Cellular Mobile Network configuration change to blocked.
| |||||||||||
Blocks the ability to receiving kind of any sms on system wide level.
| |||||||||||
Blocks the ability to sending kind of any sms on system wide level.
| |||||||||||
Updates Cellular Mobile Network configuration.
|
Returns the list of the Mobile APN configurations for given country from carriers table of Telephony Provider in Android.
Parameters | |
---|---|
mcc |
String :
Mobile Country Code @see Mobile Country Code
List |
Returns | |
---|---|
List<MobileApnConfig> |
List of MobileApnConfig |
Throws | |
---|---|
AfexException |
See also:
Returns the configuration of the Mobile APN from carriers table of Telephony Provider in Android.
Parameters | |
---|---|
netId |
long :
Network Id |
Returns | |
---|---|
MobileApnConfig |
MobileApnConfig |
Throws | |
---|---|
AfexException |
See also:
Returns Preferred Cellular Mobile Network configuration. This is the Cellular Mobile Network configuration for Internet access for all applications on the device.
Returns | |
---|---|
MobileApnConfig |
MobileApnConfig Preferred Cellular APN configuration. |
Throws | |
---|---|
AfexException |
See also:
Returns whether Data Roaming is blocked or not.
Returns | |
---|---|
boolean |
true if data roaming blocked else false . |
Throws | |
---|---|
AfexException |
See also:
Returns whether Data Roaming is enabled or not. Checks Android Global Setting DATA_ROAMING.
Returns | |
---|---|
boolean |
true if data roaming enabled else false . |
Throws | |
---|---|
AfexException |
See also:
Returns whether Download Over Mobile is blocked.
Returns | |
---|---|
boolean |
true if Download Over Mobile connection is blocked else false . |
Throws | |
---|---|
AfexException |
See also:
Return whether Mobile Data is blocked or unblocked.
Returns | |
---|---|
boolean |
true if Mobile Data is blocked, false otherwise |
Throws | |
---|---|
AfexException |
See also:
Gets the value of the setting for enabling Mobile Data.
Returns | |
---|---|
boolean |
true to enable Mobile Data else false . |
Throws | |
---|---|
AfexException |
See also:
Returns whether Mobile Data connection state change is blocked or not. If state change is blocked Mobile Data remains its current state(No state changes occur).
Returns | |
---|---|
boolean |
true if Mobile Data state change is blocked, false otherwise. |
Throws | |
---|---|
AfexException |
See also:
Return whether Preferred Cellular Mobile Network configuration change is blocked or not.
Returns | |
---|---|
boolean |
true if Mobile Data is blocked, false otherwise |
Throws | |
---|---|
AfexException |
See also:
Returns whether receiving sms is blocked or not on system wide level.
Returns | |
---|---|
boolean |
true if receiving sms is blocked, false otherwise. |
Throws | |
---|---|
AfexException |
Returns whether sending sms is blocked or not on system wide level.
Returns | |
---|---|
boolean |
true if sending sms is blocked, false otherwise. |
Throws | |
---|---|
AfexException |
Deletes Cellular Mobile Network configuration. Removes the entry of the Mobile APN from carriers table of Telephony Provider in Android.
Parameters | |
---|---|
netId |
long :
Network Id |
Returns | |
---|---|
boolean |
true if the operation succeeds else false . |
Throws | |
---|---|
AfexException |
See also:
Saves Cellular Mobile Network configuration.
Parameters | |
---|---|
conf |
MobileApnConfig :
MobileApnConfig |
Returns | |
---|---|
long |
long network Id. |
Throws | |
---|---|
AfexException |
See also:
Sets/Resets Data Roaming Blocked.
Parameters | |
---|---|
state |
boolean :
true to block, false to unblock |
Returns | |
---|---|
boolean |
true if the operation succeeds else false . |
Throws | |
---|---|
AfexException |
See also:
Sets/Resets Data Roaming Enabled. Changes Android Global Setting DATA_ROAMING.
Parameters | |
---|---|
state |
boolean :
true to enable, false to disable |
Returns | |
---|---|
boolean |
true if the operation succeeds else false . |
Throws | |
---|---|
AfexException |
See also:
Sets/Resets Download Over Mobile connection blocking.
Parameters | |
---|---|
state |
boolean :
true to enable, false to disable |
Returns | |
---|---|
boolean |
true if the operation succeeds else false . |
Throws | |
---|---|
AfexException |
See also:
Sets Mobile Data availability to blocked.
In Blocking case; Mobile Data is turned OFF and it is blocked.
The Mobile Data can not be turned ON until it is unblocked.
In Unblocking case; Mobile Data is unblocked and it is turned ON
Parameters | |
---|---|
state |
boolean :
true to block Mobile Data, false to unblock. |
Returns | |
---|---|
boolean |
true if the operation succeeds (or if the existing state is the same as the
requested state) else false |
Throws | |
---|---|
AfexException |
See also:
Sets the persisted value for enabling/disabling Mobile data.
Parameters | |
---|---|
state |
boolean :
true to enable false to disable. |
Throws | |
---|---|
AfexException |
See also:
Disables the ability to change Mobile Data state.
In Blocking case; If Mobile Data state is ON it remains ON and can not be turned OFF by App UID. If Mobile Data state is OFF it remains OFF and can not be turned ON by App UID.
The Mobile Data state can not be changed until it is unblocked.
In Unblocking case; Mobile Data can be disabled(Turned OFF) or enabled(Turn ON) by App UID.
Parameters | |
---|---|
state |
boolean :
true to block Mobile Data state change, false to unblock. |
Returns | |
---|---|
boolean |
true if the operation succeeds, else false |
Throws | |
---|---|
AfexException |
See also:
Sets Preferred Cellular Mobile Network configuration. All the applications on the device will use the specific APN.
Parameters | |
---|---|
netId |
long :
Network Id |
Returns | |
---|---|
boolean |
true if the operation succeeds else false . |
Throws | |
---|---|
AfexException |
Sets Preferred Cellular Mobile Network configuration change to blocked. When APN change is blocked, currently preferred APN is stored as preferred APN and can not be changed by the user. If there is no preferred APN on the device API returns failure.
In Blocking case; Preferred Cellular Mobile Network configuration can not be changed.
In Unblocking case; Preferred Cellular Mobile Network configuration can be changed.
Parameters | |
---|---|
state |
boolean :
true to block Cellular Mobile Network configuration change,
false to unblock. |
Returns | |
---|---|
boolean |
true if the operation succeeds (or if the existing state is the same as the
requested state) else false |
Throws | |
---|---|
AfexException |
See also:
Blocks the ability to receiving kind of any sms on system wide level.
Parameters | |
---|---|
state |
boolean :
true to block receiving sms, false to unblock. |
Returns | |
---|---|
boolean |
true if the operation succeeds, else false |
Throws | |
---|---|
AfexException |
Blocks the ability to sending kind of any sms on system wide level.
Parameters | |
---|---|
state |
boolean :
true to block sending sms, false to unblock. |
Returns | |
---|---|
boolean |
true if the operation succeeds, else false |
Throws | |
---|---|
AfexException |
Updates Cellular Mobile Network configuration.
Parameters | |
---|---|
conf |
MobileApnConfig :
MobileApnConfig |
Returns | |
---|---|
boolean |
true if the operation succeeds else false . |
Throws | |
---|---|
AfexException |
See also: