Partager via


ConnectivityManager.ActionBackgroundDataSettingChanged Field

Definition

Caution

deprecated

Broadcast Action: The setting for background data usage has changed values.

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

Field Value

Attributes

Remarks

Broadcast Action: The setting for background data usage has changed values. Use #getBackgroundDataSetting() to get the current value.

If an application uses the network in the background, it should listen for this broadcast and stop using the background data if the value is false.

This member is deprecated. As of VERSION_CODES#ICE_CREAM_SANDWICH, availability of background data depends on several combined factors, and this broadcast is no longer sent. Instead, when background data is unavailable, #getActiveNetworkInfo() will now appear disconnected. During first boot after a platform upgrade, this broadcast will be sent once if #getBackgroundDataSetting() was false before the upgrade.

Java documentation for android.net.ConnectivityManager.ACTION_BACKGROUND_DATA_SETTING_CHANGED.

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