共用方式為


Settings.Secure.BackgroundData Field

Definition

Caution

deprecated

Whether background data usage is allowed.

[Android.Runtime.Register("BACKGROUND_DATA")]
[System.Obsolete("deprecated")]
public const string BackgroundData;
[<Android.Runtime.Register("BACKGROUND_DATA")>]
[<System.Obsolete("deprecated")>]
val mutable BackgroundData : string

Field Value

Attributes

Remarks

Whether background data usage is allowed.

This member is deprecated. As of VERSION_CODES#ICE_CREAM_SANDWICH, availability of background data depends on several combined factors. When background data is unavailable, ConnectivityManager#getActiveNetworkInfo() will now appear disconnected.

Java documentation for android.provider.Settings.Secure.BACKGROUND_DATA.

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