public interface

ConnectivityManagerPrivileged

masonamerica.platform.ConnectivityManagerPrivileged

Class Overview

A privileged extension of the existing ConnectivityManager.

Summary

Public Methods
abstract void setAirplaneMode(boolean enable)
Set airplane mode
abstract void setGlobalProxy(ProxyInfo proxyInfo)
Sets a network-independent global HTTP proxy of a given type.

Public Methods

public abstract void setAirplaneMode (boolean enable)

Set airplane mode

Parameters
enable boolean: true to enable airplane mode, false to disable

public abstract void setGlobalProxy (ProxyInfo proxyInfo)

Sets a network-independent global HTTP proxy of a given type. This is useful for general internal/corporation-wide filtering scenarios. On a private network where the proxy is NOT accessible for any reason, this could break HTTP on a device. Use the static methods in the ProxyInfo class to provide the correct proxy settings. NOTE: Typical HTTP proxies are generally network dependent. This setting is not on a per-network basis, but rather has a global effect. NOTE 2: This proxy is only a recommendation and it is possible that some apps, especially native apps or those that use custom HTTP client implementations will ignore it.

Parameters
proxyInfo ProxyInfo: An instance of ProxyInfo