7272 * <p class="note">Unless noted, all Location API methods require
7373 * the {@link android.Manifest.permission#ACCESS_COARSE_LOCATION} or
7474 * {@link android.Manifest.permission#ACCESS_FINE_LOCATION} permissions.
75- * If your application only has the Coarse permission then it will still
76- * receive location results, but the update rate will be throttled and
77- * the exact location will be obfuscated to a coarse level of accuracy.
78- *
79- * <p> class="note">Before API level 17, the use of 'fine' location
80- * providers such as GPS required the fine permission. As of API level
81- * 17, applications with only the coarse permission may use all providers,
82- * including GPS, but the locations are obfuscated (made coarse) before
83- * being sent to the application.
75+ * If your application only has the coarse permission then it will not have
76+ * access to the GPS or passive location providers. Other providers will still
77+ * return location results, but the update rate will be throttled and the exact
78+ * location will be obfuscated to a coarse level of accuracy.
8479 */
8580public class LocationManager {
8681 private static final String TAG = "LocationManager" ;
@@ -109,13 +104,8 @@ public class LocationManager {
109104 *
110105 * <p>This provider determines location using
111106 * satellites. Depending on conditions, this provider may take a while to return
112- * a location fix.
113- *
114- * <p>Before API version 17, this provider required the
115- * {@link android.Manifest.permission#ACCESS_FINE_LOCATION} permission.
116- * From API version 17 and onwards, this provider can also be used with
117- * {@link android.Manifest.permission#ACCESS_COARSE_LOCATION}, however
118- * the locations returned will be obfuscated to a coarse level of accuracy.
107+ * a location fix. Requires the permission
108+ * {@link android.Manifest.permission#ACCESS_FINE_LOCATION}.
119109 *
120110 * <p> The extras Bundle for the GPS location provider can contain the
121111 * following key/value pairs:
@@ -136,13 +126,9 @@ public class LocationManager {
136126 * when other applications or services request them without actually requesting
137127 * the locations yourself. This provider will return locations generated by other
138128 * providers. You can query the {@link Location#getProvider()} method to determine
139- * the origin of the location update.
140- *
141- * <p>Before API version 17, this provider required the
142- * {@link android.Manifest.permission#ACCESS_FINE_LOCATION} permission.
143- * From API version 17 and onwards, this provider can also be used with
144- * {@link android.Manifest.permission#ACCESS_COARSE_LOCATION}, however
145- * the locations returned will be obfuscated to a coarse level of accuracy.
129+ * the origin of the location update. Requires the permission
130+ * {@link android.Manifest.permission#ACCESS_FINE_LOCATION}, although if the GPS is
131+ * not enabled this provider might only return coarse fixes.
146132 *
147133 * @deprecated Use {@link LocationRequest} instead, see notes on {@link LocationManager}
148134 */
0 commit comments