diff options
author | 2019-02-08 01:24:22 +0000 | |
---|---|---|
committer | 2019-02-08 01:24:22 +0000 | |
commit | f199334e3e65cdf6d43fc69ba378ae2dcca2a5af (patch) | |
tree | 1061aa41b272fd9a8bd806524c2eae40d9a6f0fd | |
parent | fde347156d28eebc47a2dfb3e7efce92d5802c02 (diff) | |
parent | 1aee57aaf122f258c46bdf978592c3aa8ea0fa6e (diff) |
Merge "Update CellInfo Documentation on Updates"
-rw-r--r-- | telephony/java/android/telephony/TelephonyManager.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index 148563ac8029..6ac092923ec3 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -4866,12 +4866,13 @@ public class TelephonyManager { * * <p>Apps targeting {@link android.os.Build.VERSION_CODES#Q Android Q} or higher will no * longer trigger a refresh of the cached CellInfo by invoking this API. Instead, those apps - * will receive the latest cached results. Apps targeting + * will receive the latest cached results, which may not be current. Apps targeting * {@link android.os.Build.VERSION_CODES#Q Android Q} or higher that wish to request updated * CellInfo should call - * {android.telephony.TelephonyManager#requestCellInfoUpdate requestCellInfoUpdate()} and - * listen for responses via {@link android.telephony.PhoneStateListener#onCellInfoChanged - * onCellInfoChanged()}. + * {@link android.telephony.TelephonyManager#requestCellInfoUpdate requestCellInfoUpdate()}; + * however, in all cases, updates will be rate-limited and are not guaranteed. To determine the + * recency of CellInfo data, callers should check + * {@link android.telephony.CellInfo#getTimeStamp CellInfo#getTimeStamp()}. * * <p>This method returns valid data for devices with * {@link android.content.pm.PackageManager#FEATURE_TELEPHONY FEATURE_TELEPHONY}. In cases |