locks</a> are mechanisms to keep devices on so that they can perform
background activities. Avoid using wake locks because they prevent the
@@ -623,18 +649,9 @@ requests.</p>
network connectivity, device charging state, retries, and backoff. Use
<code>GcmNetworkManager</code> to perform non-essential background activity
when the device is charging and is connected to an unmetered network.</li>
<li>Sensors, like GPS, can also have a significant drain on the battery. The
recommended way to request location is to use the FusedLocationProvider API.
The <a
href="https://developers.google.com/android/reference/com/google/android/gms/location/FusedLocationProviderApi">FusedLocationProvider</a> API manages the
underlying location technology and provides a simple API so that you can
specify requirements—like high accuracy or low power—at a high
level. It also optimizes the device's use of battery power by caching
locations and batching requests across apps. For more information on the
ideal ways to request location, see the <a
href="{@docRoot}training/location/retrieve-current.html">Getting the Last
Known Location</a> training guide.
</li>
<li>For more information on how network activity can drain the battery, and