Merge "Add a small usage comment" am: a898f0a039

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1844182

Change-Id: Ibe27d64cd16a2ef44d6a41b94f81a0daa06c523b
This commit is contained in:
Chalard Jean
2021-10-05 11:14:01 +00:00
committed by Automerger Merge Worker

View File

@@ -144,6 +144,11 @@ 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.
* <p />
* 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}