Deprecate CONNECTIVITY_ACTION.
That was its destiny. Use NetworkCallbacks instead. Test: runtest frameworks-net, but this is only doc changes Change-Id: I3d68dbf817de92c66d899a7cc4519c5639e4c049
This commit is contained in:
@@ -25713,7 +25713,7 @@ package android.net {
|
||||
field public static final deprecated java.lang.String ACTION_BACKGROUND_DATA_SETTING_CHANGED = "android.net.conn.BACKGROUND_DATA_SETTING_CHANGED";
|
||||
field public static final java.lang.String ACTION_CAPTIVE_PORTAL_SIGN_IN = "android.net.conn.CAPTIVE_PORTAL";
|
||||
field public static final java.lang.String ACTION_RESTRICT_BACKGROUND_CHANGED = "android.net.conn.RESTRICT_BACKGROUND_CHANGED";
|
||||
field public static final java.lang.String CONNECTIVITY_ACTION = "android.net.conn.CONNECTIVITY_CHANGE";
|
||||
field public static final deprecated java.lang.String CONNECTIVITY_ACTION = "android.net.conn.CONNECTIVITY_CHANGE";
|
||||
field public static final deprecated int DEFAULT_NETWORK_PREFERENCE = 1; // 0x1
|
||||
field public static final java.lang.String EXTRA_CAPTIVE_PORTAL = "android.net.extra.CAPTIVE_PORTAL";
|
||||
field public static final java.lang.String EXTRA_CAPTIVE_PORTAL_URL = "android.net.extra.CAPTIVE_PORTAL_URL";
|
||||
|
||||
@@ -112,8 +112,14 @@ public class ConnectivityManager {
|
||||
* <p/>
|
||||
* For a disconnect event, the boolean extra EXTRA_NO_CONNECTIVITY
|
||||
* is set to {@code true} if there are no connected networks at all.
|
||||
*
|
||||
* @deprecated apps should use the more versatile {@link #requestNetwork},
|
||||
* {@link #registerNetworkCallback} or {@link #registerDefaultNetworkCallback}
|
||||
* functions instead for faster and more detailed updates about the network
|
||||
* changes they care about.
|
||||
*/
|
||||
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
|
||||
@Deprecated
|
||||
public static final String CONNECTIVITY_ACTION = "android.net.conn.CONNECTIVITY_CHANGE";
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user