I\'m on Android 2.3.7 and I\'m trying to write a BroadcastReceiver that will get called when the user turns GPS on/off (ie: by tapping on the \"use GPS satellites\" in the optio
On API level 9 and higher you can use LocationManager.PROVIDERS_CHANGED_ACTION:
Broadcast intent action when the configured location providers change. For use with
isProviderEnabled(String)
. If you're interacting with theLOCATION_MODE API
, useMODE_CHANGED_ACTION
instead.Constant Value: "android.location.PROVIDERS_CHANGED"
Source