diff options
| author | 2022-06-22 20:02:34 +0000 | |
|---|---|---|
| committer | 2022-06-22 20:02:34 +0000 | |
| commit | fd665da1fcc9d074de2ef852d308f9c9334b988f (patch) | |
| tree | 1f43daef45ed99bb1dec5f02d72e3d9b12be8f88 /location/java | |
| parent | 1a478e6cfeabaa98ba0a235d5c6f9ed777bfbd8c (diff) | |
| parent | e60263fae565654673e1f971da81955c46722ac1 (diff) | |
Merge "Add javadocs update on Android R crash"
Diffstat (limited to 'location/java')
| -rw-r--r-- | location/java/android/location/LocationManager.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/location/java/android/location/LocationManager.java b/location/java/android/location/LocationManager.java index fd0c8948c321..861725fc986b 100644 --- a/location/java/android/location/LocationManager.java +++ b/location/java/android/location/LocationManager.java @@ -2667,6 +2667,13 @@ public class LocationManager { * * <p>Not all GNSS chipsets support measurements updates, see {@link #getGnssCapabilities()}. * + * <p class="caution">On Android R devices that have not yet upgraded to Android R QPR1, using + * this API will cause unavoidable crashes in the client application when GNSS measurements + * are received. If a client needs to receive GNSS measurements on Android R devices that have + * not been upgraded to QPR1, clients are instead encouraged to use + * <a href="https://developer.android.com/reference/androidx/core/location/LocationManagerCompat#registerGnssMeasurementsCallback(android.location.LocationManager,java.util.concurrent.Executor,android.location.GnssMeasurementsEvent.Callback)">LocationManagerCompat.registerGnssMeasurementsCallback()</a> + * from the compat libraries instead to avoid this crash. + * * @param executor the executor that the callback runs on * @param callback the callback to register * @return {@code true} always |