diff options
author | Tom O'Neill <tomo@google.com> | 2013-09-03 18:05:13 -0700 |
---|---|---|
committer | Tom O'Neill <tomo@google.com> | 2013-09-03 18:07:10 -0700 |
commit | 40a86c24d2601df4966c57573a5bf58b30a41990 (patch) | |
tree | a34b94d308b15723986736c4f1b096b61e2a4267 /location/java/android | |
parent | d0e2a2e7a9a6c247f501a5044d1c19cd82c6129d (diff) | |
download | frameworks_base-40a86c24d2601df4966c57573a5bf58b30a41990.zip frameworks_base-40a86c24d2601df4966c57573a5bf58b30a41990.tar.gz frameworks_base-40a86c24d2601df4966c57573a5bf58b30a41990.tar.bz2 |
Add LocationManager.MODE_CHANGED_ACTION broadcast
- Currently redundant with PROVIDERS_CHANGED_ACTION, but that may
change in the future
- Part of fix for b/10409275
Change-Id: I12daaf20e6546fd9e9dc71c599967fa0ad95e27f
Diffstat (limited to 'location/java/android')
-rw-r--r-- | location/java/android/location/LocationManager.java | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/location/java/android/location/LocationManager.java b/location/java/android/location/LocationManager.java index e5f1cf5..14b812e 100644 --- a/location/java/android/location/LocationManager.java +++ b/location/java/android/location/LocationManager.java @@ -152,12 +152,24 @@ public class LocationManager { /** * Broadcast intent action when the configured location providers - * change. + * change. If you're interacting with the + * {@link android.provider.Settings.Secure#LOCATION_MODE} API, + * use {@link #MODE_CHANGED_ACTION} instead. */ public static final String PROVIDERS_CHANGED_ACTION = "android.location.PROVIDERS_CHANGED"; /** + * Broadcast intent action when {@link android.provider.Settings.Secure#LOCATION_MODE} changes. + * If you're interacting with provider-based APIs such as {@link #getProviders(boolean)}, you + * use {@link #PROVIDERS_CHANGED_ACTION} instead. + * + * In the future, there may be mode changes that do not result in + * {@link #PROVIDERS_CHANGED_ACTION} broadcasts. + */ + public static final String MODE_CHANGED_ACTION = "android.location.MODE_CHANGED"; + + /** * Broadcast intent action indicating that the GPS has either started or * stopped receiving GPS fixes. An intent extra provides this state as a * boolean, where {@code true} means that the GPS is actively receiving fixes. |