File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff 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";
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments