Language

AddNetworkResultStatus Enum

Definition

Identifies the result of adding or updating a Wi-Fi network configuration.

public enum AddNetworkResultStatus
type AddNetworkResultStatus = 
Inheritance
AddNetworkResultStatus

Fields

Name Value Description
Success 0

The operation has completed successfully.

Android reference for android.net.wifi.WifiManager.AddNetworkResult.STATUS_SUCCESS.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

FailureUnknown 1

The operation has failed due to an unknown reason.

Android reference for android.net.wifi.WifiManager.AddNetworkResult.STATUS_FAILURE_UNKNOWN.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

NoPermission 2

The calling app does not have permission to call this API.

Android reference for android.net.wifi.WifiManager.AddNetworkResult.STATUS_NO_PERMISSION.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

AddPasspointFailure 3

Generic failure code for adding a passpoint network.

Android reference for android.net.wifi.WifiManager.AddNetworkResult.STATUS_ADD_PASSPOINT_FAILURE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

AddWifiConfigFailure 4

Generic failure code for adding a non-passpoint network.

Android reference for android.net.wifi.WifiManager.AddNetworkResult.STATUS_ADD_WIFI_CONFIG_FAILURE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

InvalidConfiguration 5

The network configuration is invalid.

Android reference for android.net.wifi.WifiManager.AddNetworkResult.STATUS_INVALID_CONFIGURATION.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

NoPermissionModifyConfig 6

The calling app has no permission to modify the configuration.

Android reference for android.net.wifi.WifiManager.AddNetworkResult.STATUS_NO_PERMISSION_MODIFY_CONFIG.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

NoPermissionModifyProxySetting 7

The calling app has no permission to modify the proxy setting.

Android reference for android.net.wifi.WifiManager.AddNetworkResult.STATUS_NO_PERMISSION_MODIFY_PROXY_SETTING.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

NoPermissionModifyMacRandomization 8

The calling app has no permission to modify the MAC randomization setting.

Android reference for android.net.wifi.WifiManager.AddNetworkResult.STATUS_NO_PERMISSION_MODIFY_MAC_RANDOMIZATION.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

FailureUpdateNetworkKeys 9

Internal failure in updating network keys..

Android reference for android.net.wifi.WifiManager.AddNetworkResult.STATUS_FAILURE_UPDATE_NETWORK_KEYS.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

InvalidConfigurationEnterprise 10

The enterprise network is missing either the root CA or domain name.

Android reference for android.net.wifi.WifiManager.AddNetworkResult.STATUS_INVALID_CONFIGURATION_ENTERPRISE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Remarks

These codes describe StatusCode. Success is zero; the other codes distinguish configuration, permission, and update failures.

Applies to