From 025f40bc4fa7a57a98560123239fe71150fb764f Mon Sep 17 00:00:00 2001 From: Chalard Jean Date: Mon, 4 Oct 2021 18:33:36 +0900 Subject: [PATCH] Add a small usage comment Test: comment-only change Bug: 201972281 Change-Id: Ifbdadbaacfaf364f6770e56ccb816eb3269003d5 --- framework/src/android/net/ConnectivityManager.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/framework/src/android/net/ConnectivityManager.java b/framework/src/android/net/ConnectivityManager.java index 4f10abce07..214b6d6684 100644 --- a/framework/src/android/net/ConnectivityManager.java +++ b/framework/src/android/net/ConnectivityManager.java @@ -144,6 +144,11 @@ public class ConnectivityManager { *

* For a disconnect event, the boolean extra EXTRA_NO_CONNECTIVITY * is set to {@code true} if there are no connected networks at all. + *

+ * Note that this broadcast is deprecated and generally tries to implement backwards + * compatibility with older versions of Android. As such, it may not reflect new + * capabilities of the system, like multiple networks being connected at the same + * time, the details of newer technology, or changes in tethering state. * * @deprecated apps should use the more versatile {@link #requestNetwork}, * {@link #registerNetworkCallback} or {@link #registerDefaultNetworkCallback}