diff options
author | Hall Liu <hallliu@google.com> | 2020-10-29 00:58:29 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2020-10-29 00:58:29 +0000 |
commit | 66917569e16cc607158253af86c910f39f7e463f (patch) | |
tree | 65529c7b9b96b23fbe4fb752a4bfdeeeebb41934 | |
parent | 5fee20787664acc6d0efebc97e13fb428967ace1 (diff) | |
parent | f0a61676ef810797849e1234854becc7647452b5 (diff) |
Merge "Update docs for TelephonyManager#getServiceState"
-rw-r--r-- | telephony/java/android/telephony/TelephonyManager.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index 04a06f58d1c8..23d450b38376 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -10323,6 +10323,9 @@ public class TelephonyManager { * <p>If this object has been created with {@link #createForSubscriptionId}, applies to the * given subId. Otherwise, applies to {@link SubscriptionManager#getDefaultSubscriptionId()} * + * If you want continuous updates of service state info, register a {@link PhoneStateListener} + * via {@link #listen} with the {@link PhoneStateListener#LISTEN_SERVICE_STATE} event. + * * <p>Requires Permission: {@link android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE} * or that the calling app has carrier privileges (see {@link #hasCarrierPrivileges}) * and {@link android.Manifest.permission#ACCESS_COARSE_LOCATION}. |