Android Guides | Samples

Android.Net.ConnectivityType Enumeration

Enumerates values returned by several types and taken as a parameter of several methods of ConnectivityManager.

Syntax

public enum ConnectivityType

Remarks

Members

Member NameDescription
BluetoothThe Bluetooth data connection. When active, all data traffic will use this network type's interface by default (it has a default route).
DummyDummy data connection. This should not be used on shipping devices.
EthernetThe Ethernet data connection. When active, all data traffic will use this network type's interface by default (it has a default route).
MobileThe Mobile data connection. When active, all data traffic will use this network type's interface by default (it has a default route)
MobileDunA DUN-specific Mobile data connection. This network type may use the same network interface as ConnectivityType.Mobile or it may use a different one. This is sometimes by the system when setting up an upstream connection for tethering so that the carrier is aware of DUN traffic.
MobileHipriA High Priority Mobile data connection. This network type uses the same network interface as ConnectivityType.Mobile but the routing setup is different. Only requesting processes will have access to the Mobile DNS servers and only IP's explicitly requested via ConnectivityManager.RequestRouteToHost(ConnectivityType,Int32) will route over this interface if no default route exists.
MobileMmsAn MMS-specific Mobile data connection. This network type may use the same network interface as ConnectivityType.Mobile or it may use a different one. This is used by applications needing to talk to the carrier's Multimedia Messaging Service servers.
MobileSuplA SUPL-specific Mobile data connection. This network type may use the same network interface as ConnectivityType.Mobile or it may use a different one. This is used by applications needing to talk to the carrier's Secure User Plane Location servers for help locating the device.
Vpn
WifiThe WIFI data connection. When active, all data traffic will use this network type's interface by default (it has a default route).
WimaxThe WiMAX data connection. When active, all data traffic will use this network type's interface by default (it has a default route).

Requirements

Namespace: Android.Net
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0

The members of Android.Net.ConnectivityType are listed below.

See Also: Enum

Public Fields

BluetoothConnectivityType. The Bluetooth data connection. When active, all data traffic will use this network type's interface by default (it has a default route).
DummyConnectivityType. Dummy data connection. This should not be used on shipping devices.
EthernetConnectivityType. The Ethernet data connection. When active, all data traffic will use this network type's interface by default (it has a default route).
MobileConnectivityType. The Mobile data connection. When active, all data traffic will use this network type's interface by default (it has a default route)
MobileDunConnectivityType. A DUN-specific Mobile data connection. This network type may use the same network interface as ConnectivityType.Mobile or it may use a different one. This is sometimes by the system when setting up an upstream connection for tethering so that the carrier is aware of DUN traffic.
MobileHipriConnectivityType. A High Priority Mobile data connection. This network type uses the same network interface as ConnectivityType.Mobile but the routing setup is different. Only requesting processes will have access to the Mobile DNS servers and only IP's explicitly requested via ConnectivityManager.RequestRouteToHost(ConnectivityType,Int32) will route over this interface if no default route exists.
MobileMmsConnectivityType. An MMS-specific Mobile data connection. This network type may use the same network interface as ConnectivityType.Mobile or it may use a different one. This is used by applications needing to talk to the carrier's Multimedia Messaging Service servers.
MobileSuplConnectivityType. A SUPL-specific Mobile data connection. This network type may use the same network interface as ConnectivityType.Mobile or it may use a different one. This is used by applications needing to talk to the carrier's Secure User Plane Location servers for help locating the device.
VpnConnectivityType.
WifiConnectivityType. The WIFI data connection. When active, all data traffic will use this network type's interface by default (it has a default route).
WimaxConnectivityType. The WiMAX data connection. When active, all data traffic will use this network type's interface by default (it has a default route).