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.

[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

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

This member is deprecated. Since we support so many more networks now, the single network default network preference can't really express the hierarchy. Instead, the default is defined by the networkAttributes in config.xml. You can determine the current value by calling #getNetworkPreference() from an App.

Java documentation for android.net.ConnectivityManager.DEFAULT_NETWORK_PREFERENCE.

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