summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Hall Liu <hallliu@google.com> 2020-10-29 01:58:26 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2020-10-29 01:58:26 +0000
commit2e35b030ebe1c5f1336db3271152c47410e91ed9 (patch)
tree726cc9e32e4c8f64036b9ff7aea147e438b71699
parent6a4c6ea669eac544022a45d0e0640ee7b91a4db6 (diff)
parent44435a21752e9201b44482a9671514b2723e36a6 (diff)
Merge "Update docs for TelephonyManager#getServiceState" am: 66917569e1 am: a29952e222 am: 44435a2175
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1474964 Change-Id: I4e502a4d3ea07940c13346b55802151d0efb349c
-rw-r--r--telephony/java/android/telephony/TelephonyManager.java3
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}.