Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40aaf539 authored by Hemal Patel's avatar Hemal Patel Committed by android-build-merger
Browse files

Docs: Fixed a broken link

am: 9a641b69

Change-Id: If8e166a3cb36d158fd428e314b90cb265cf2256c
parents f134b886 9a641b69
Loading
Loading
Loading
Loading
+30 −13
Original line number Original line Diff line number Diff line
@@ -332,22 +332,39 @@ LocationServices.GeofencingApi.removeGeofences(
<p>This section outlines recommendations for using geofencing with the location
<p>This section outlines recommendations for using geofencing with the location
APIs for Android.</p>
APIs for Android.</p>


<h3>Reduce power consumption</h3>
<h3>
  Reduce power consumption
</h3>


<p>You can use the following techniques to optimize power consumption in your apps that use geofencing:</p>
<p>
  You can use the following techniques to optimize power consumption in your
  apps that use geofencing:
</p>


<ul>
<ul>
<li><p>Set the <a href="{@docRoot}android/reference/com/google/android/gms/location/Geofence.Builder.html#setNotificationResponsiveness(int)">
  <li>
notification responsiveness</a> to a higher value. Doing so improves power consumption by
    <p>
increasing the latency of geofence alerts. For example, if you set a responsiveness value of five
      Set the <a href=
minutes your app only checks for an entrance or exit alert once every five minutes.
      "https://developers.google.com/android/reference/com/google/android/gms/location/Geofence.Builder.html#setNotificationResponsiveness(int)">
Setting lower values does not necessarily mean that users will be notified within that time period
      notification responsiveness</a> to a higher value. Doing so improves
(for example, if you set a value of 5 seconds it may take a bit longer than that to receive the
      power consumption by increasing the latency of geofence alerts. For
alert).</p></li>
      example, if you set a responsiveness value of five minutes your app only
<li><p>Use a larger geofence radius for locations where a user spends a significant amount of time,
      checks for an entrance or exit alert once every five minutes. Setting
such as home or work. While a larger radius doesn't directly reduce power consumption, it reduces
      lower values does not necessarily mean that users will be notified
the frequency at which the app checks for entrance or exit, effectively lowering overall power
      within that time period (for example, if you set a value of 5 seconds it
consumption.</p></li>
      may take a bit longer than that to receive the alert).
    </p>
  </li>

  <li>
    <p>
      Use a larger geofence radius for locations where a user spends a
      significant amount of time, such as home or work. While a larger radius
      doesn't directly reduce power consumption, it reduces the frequency at
      which the app checks for entrance or exit, effectively lowering overall
      power consumption.
    </p>
  </li>
</ul>
</ul>


<h3>Choose the optimal radius for your geofence</h3>
<h3>Choose the optimal radius for your geofence</h3>