Skip to content

Commit 88de70f

Browse files
jsharkeyAndroid (Google) Code Review
authored andcommitted
Merge "Deprecate ACTION_BACKGROUND_DATA_SETTING_CHANGED."
2 parents 9dbfc33 + 54ee2ad commit 88de70f

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

api/current.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11639,7 +11639,7 @@ package android.net {
1163911639
method public void setNetworkPreference(int);
1164011640
method public int startUsingNetworkFeature(int, java.lang.String);
1164111641
method public int stopUsingNetworkFeature(int, java.lang.String);
11642-
field public static final java.lang.String ACTION_BACKGROUND_DATA_SETTING_CHANGED = "android.net.conn.BACKGROUND_DATA_SETTING_CHANGED";
11642+
field public static final deprecated java.lang.String ACTION_BACKGROUND_DATA_SETTING_CHANGED = "android.net.conn.BACKGROUND_DATA_SETTING_CHANGED";
1164311643
field public static final java.lang.String CONNECTIVITY_ACTION = "android.net.conn.CONNECTIVITY_CHANGE";
1164411644
field public static final int DEFAULT_NETWORK_PREFERENCE = 1; // 0x1
1164511645
field public static final java.lang.String EXTRA_EXTRA_INFO = "extraInfo";

core/java/android/net/ConnectivityManager.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,19 @@ public class ConnectivityManager {
142142
* If an application uses the network in the background, it should listen
143143
* for this broadcast and stop using the background data if the value is
144144
* {@code false}.
145+
* <p>
146+
*
147+
* @deprecated As of {@link VERSION_CODES#ICE_CREAM_SANDWICH}, availability
148+
* of background data depends on several combined factors, and
149+
* this broadcast is no longer sent. Instead, when background
150+
* data is unavailable, {@link #getActiveNetworkInfo()} will now
151+
* appear disconnected. During first boot after a platform
152+
* upgrade, this broadcast will be sent once if
153+
* {@link #getBackgroundDataSetting()} was {@code false} before
154+
* the upgrade.
145155
*/
146156
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
157+
@Deprecated
147158
public static final String ACTION_BACKGROUND_DATA_SETTING_CHANGED =
148159
"android.net.conn.BACKGROUND_DATA_SETTING_CHANGED";
149160

0 commit comments

Comments
 (0)