diff options
author | Brad Fitzpatrick <bradfitz@android.com> | 2010-08-27 14:01:23 -0700 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@android.com> | 2010-08-27 14:01:23 -0700 |
commit | 0c5a04014d3833c9a82772a832d3bc6410fc52ac (patch) | |
tree | 79831e18eee9d29207d199499a9ece7a7068fedc /location | |
parent | 445ab76c49779998543bb78881f5d9f8ae81e598 (diff) | |
download | frameworks_base-0c5a04014d3833c9a82772a832d3bc6410fc52ac.zip frameworks_base-0c5a04014d3833c9a82772a832d3bc6410fc52ac.tar.gz frameworks_base-0c5a04014d3833c9a82772a832d3bc6410fc52ac.tar.bz2 |
Send broadcast intent when configured location providers change.
See e.g. http://code.google.com/p/android/issues/detail?id=10042
This is also needed by the power control widget, which has no reliable
way otherwise of staying in-sync.
Change-Id: I8f2b6b79b1843329bae952a25ea56f15e3cf92aa
Diffstat (limited to 'location')
-rw-r--r-- | location/java/android/location/LocationManager.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/location/java/android/location/LocationManager.java b/location/java/android/location/LocationManager.java index 9ceda7e..9aa84a03 100644 --- a/location/java/android/location/LocationManager.java +++ b/location/java/android/location/LocationManager.java @@ -127,6 +127,13 @@ public class LocationManager { "android.location.GPS_ENABLED_CHANGE"; /** + * Broadcast intent action when the configured location providers + * change. + */ + public static final String PROVIDERS_CHANGED_ACTION = + "android.location.PROVIDERS_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. |