From a9b72b30eb62815d0c2cb7b16c0d191f78c892e5 Mon Sep 17 00:00:00 2001 From: Yu-Han Yang Date: Fri, 20 Jul 2018 16:06:50 -0700 Subject: [PATCH] Update JavaDoc of LocationManager#requestLocationUpdates Bug: 111522117 Change-Id: If92dd8b2517769ef2964c671fcbd41b58e8727f2 Fixes: 111522117 Test: n/a (javadoc only) --- location/java/android/location/LocationManager.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/location/java/android/location/LocationManager.java b/location/java/android/location/LocationManager.java index ee9e732c88a8f..30a07ef94b06b 100644 --- a/location/java/android/location/LocationManager.java +++ b/location/java/android/location/LocationManager.java @@ -734,6 +734,11 @@ public class LocationManager { * calling Activity. If a Looper is specified with a {@link LocationListener} * then callbacks are made on the supplied Looper thread. * + *

When location callbacks are invoked, the system will hold a wakelock + * on your application's behalf for some period of time, but not + * indefinitely. If your application requires a long running wakelock + * within the location callback, you should acquire it yourself. + * *

Prior to Jellybean, the minTime parameter was * only a hint, and some location provider implementations ignored it. * From Jellybean and onwards it is mandatory for Android compatible