Why isn't Android's onProviderEnabled() method being called?
My Android app has two location listeners, one for fine and one for coarse listening. I want to be able to detect when the user turns their location services off and on. Whenever I turn my phones GPS or network location services OFF the onProviderDisabled method is called as expected. When I turn GPS or network services ON the onProviderEnabled is never called! I have put the code for one of the listeners below.... Update... I have discovered that the problem is related to unregistering the listeners in onPause. When I remove the code "locationManager.removeUpdates(myFineLocationListener);"