I would like to detect when the user changes the GPS settings on or off for an Android phone. Meaning when user switches GPS sattelite on/off or detection via access points
Impement android.location.LocationListener, there you have two functions
public void onProviderEnabled(String provider); public void onProviderDisabled(String provider);
Using this you can find out when the requested provider is turned on or off