Share via


ConnectivityManager.DefaultNetworkPreference Field

Definition

Caution

deprecated

If you want to set the default network preference,you can directly change the networkAttributes array in framework's config.xml.

[Android.Runtime.Register("DEFAULT_NETWORK_PREFERENCE")]
[System.Obsolete("deprecated")]
public const int DefaultNetworkPreference = 1;
[<Android.Runtime.Register("DEFAULT_NETWORK_PREFERENCE")>]
[<System.Obsolete("deprecated")>]
val mutable DefaultNetworkPreference : int

Field Value

Value = 1
Attributes

Remarks

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.

Applies to