I am having a problem in my Activity, which can take the control to the android mobile GPS settings to have user to switch on/off the GPS, But I am unable to retrun back to
On back press from the settings location activity, On Resume is called from the activity that called
startActivityForResult(new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS), 1);
Therefore from there you can check if location has been enabled by
`if(lm.isProviderEnabled(LocationManager.GPS_PROVIDER )) {//add your logic here }`