Add a small usage comment

Test: comment-only change
Bug: 201972281
Change-Id: Ifbdadbaacfaf364f6770e56ccb816eb3269003d5
This commit is contained in:
Chalard Jean
2021-10-04 18:33:36 +09:00
parent 7ece4bb71e
commit 025f40bc4f

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}