Merge "Update CellInfo Documentation on Updates" am: f199334e3e
am: 518f74b3cd
Change-Id: I9901663722fb3c9d5fff761d353618ed18b4d818
This commit is contained in:
@@ -4866,12 +4866,13 @@ public class TelephonyManager {
|
|||||||
*
|
*
|
||||||
* <p>Apps targeting {@link android.os.Build.VERSION_CODES#Q Android Q} or higher will no
|
* <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
|
* 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
|
* {@link android.os.Build.VERSION_CODES#Q Android Q} or higher that wish to request updated
|
||||||
* CellInfo should call
|
* CellInfo should call
|
||||||
* {android.telephony.TelephonyManager#requestCellInfoUpdate requestCellInfoUpdate()} and
|
* {@link android.telephony.TelephonyManager#requestCellInfoUpdate requestCellInfoUpdate()};
|
||||||
* listen for responses via {@link android.telephony.PhoneStateListener#onCellInfoChanged
|
* however, in all cases, updates will be rate-limited and are not guaranteed. To determine the
|
||||||
* onCellInfoChanged()}.
|
* recency of CellInfo data, callers should check
|
||||||
|
* {@link android.telephony.CellInfo#getTimeStamp CellInfo#getTimeStamp()}.
|
||||||
*
|
*
|
||||||
* <p>This method returns valid data for devices with
|
* <p>This method returns valid data for devices with
|
||||||
* {@link android.content.pm.PackageManager#FEATURE_TELEPHONY FEATURE_TELEPHONY}. In cases
|
* {@link android.content.pm.PackageManager#FEATURE_TELEPHONY FEATURE_TELEPHONY}. In cases
|
||||||
|
|||||||
Reference in New Issue
Block a user