android verificar se o usuário desativou o local

Estou criando um aplicativo no qual tenho que salvar constantemente a localização do usuário e enviá-lo ao servidor. Para isso, estou usando FusedLocationApis em um serviço. Pela primeira vez, estou pedindo ao usuário para ativar os locais. Está funcionando perfeitamente.

Agora, e se o usuário acidentalmente desligar o local. Como devo informá-lo? Os desenvolvedores precisam cuidar disso ou deixar apenas para o usuário?

Pensei em dar a ele uma notificação do Android por isso. Para isso, preciso verificar constantemente nossos locais habilitados no serviço. Eu tenho um código de trabalho para isso (função checkHighAccuracyLocationMode). Mas onde devo fazer essa verificação (checkHighAccuracyLocationMode)? Qual função é acionada toda vez neste serviço? Ou, de alguma forma, posso obter uma função que é acionada quando o usuário desativa seus locais?

Este é o meu serviço:

public class locationUpdatesService extends Service implements
    GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener, LocationListener {

private Location mLastLocation;
private Location mCurrentLocation;
private String mLastUpdateTime;
private dataBaseHandler db_helper;

@Override
public int onStartCommand(Intent intent, int flags, int startId){
    initialise();
    return super.onStartCommand(intent, flags, startId);
}

@Override
public void onCreate() {
    super.onCreate();
    db_helper = new dataBaseHandler(getApplicationContext(),dataBaseHandler.DATABASE_NAME,null,1);
}

@Override
public void onDestroy() {
    stopLocationUpdates();
    singletGoogleClientApi.setinstancenull();
    singletLocationRequest.setinstancenull();
    super.onDestroy();
}

@Nullable
@Override
public IBinder onBind(Intent intent) {
    return null;
}

private void initialise(){
    Log.e("ghgdhu","qaws");
    if (singletGoogleClientApi.getinstance().getGoogleApiCLient() == null) {
        singletGoogleClientApi.getinstance().setmSingletGoogleApiClient(new GoogleApiClient.Builder(this)
                .addConnectionCallbacks(this)
                .addOnConnectionFailedListener(this)
                .addApi(LocationServices.API)
                .build());
        singletGoogleClientApi.getinstance().getGoogleApiCLient().connect();
        createLocationRequest();
    }

    if(!singletGoogleClientApi.getinstance().getGoogleApiCLient().isConnected()){
        singletGoogleClientApi.getinstance().getGoogleApiCLient().connect();
        createLocationRequest();
    }
}

protected void createLocationRequest() {
    if(singletLocationRequest.getinstance().getLocationRequest() == null) {
        singletLocationRequest.getinstance().setSingletLocationRequest(new LocationRequest()
        .setInterval(10000)
        .setFastestInterval(5000).setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY));
    }
}

public static boolean checkHighAccuracyLocationMode(Context context) {
    int locationMode = 0;
    String locationProviders;

    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT){
        //Equal or higher than API 19/KitKat
        try {
            locationMode = Settings.Secure.getInt(context.getContentResolver(), Settings.Secure.LOCATION_MODE);
            if (locationMode == Settings.Secure.LOCATION_MODE_HIGH_ACCURACY){
                return true;
            }
        } catch (Settings.SettingNotFoundException e) {
            e.printStackTrace();
        }
    }else{
        //Lower than API 19
        locationProviders = Settings.Secure.getString(context.getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED);

        if (locationProviders.contains(LocationManager.GPS_PROVIDER) && locationProviders.contains(LocationManager.NETWORK_PROVIDER)){
            return true;
        }
    }
    return false;
}


@Override
public void onLocationChanged(Location location) {
    Log.e("qazxsw","inONLocationCHanged");
    mCurrentLocation = location;
    Log.e("loc : ",Double.toString(mCurrentLocation.getLatitude()));
    Toast.makeText(this, "My Location: "+Double.toString(mCurrentLocation.getLatitude())+ " , " + Double.toString(mCurrentLocation.getLongitude()),
            Toast.LENGTH_SHORT).show();
    mLastUpdateTime = DateFormat.getTimeInstance().format(new Date());
    if(!checkHighAccuracyLocationMode(getBaseContext())){
        Log.e("turned OFF","LOCATION");
    }
    else {
        Log.e("ONNNNN","LOCATION");
    }
    db_helper.Insert(mLastUpdateTime,mCurrentLocation.getLatitude(),mCurrentLocation.getLongitude());
}

protected void stopLocationUpdates() {
    LocationServices.FusedLocationApi.removeLocationUpdates(singletGoogleClientApi.
            getinstance().getGoogleApiCLient(), this);
}

@Override
public void onConnected(@Nullable Bundle bundle) {
    startLocationUpdates();
}

protected void startLocationUpdates() {
    try {
        if(singletLocationRequest.getinstance().getLocationRequest()!=null &&
                singletGoogleClientApi.getinstance().getGoogleApiCLient()!=null){
            Log.e("requesting","yES BRO");
            LocationServices.FusedLocationApi.requestLocationUpdates(
                    singletGoogleClientApi.getinstance().getGoogleApiCLient(), singletLocationRequest.getinstance().getLocationRequest(), this);
            mLastLocation = LocationServices.FusedLocationApi.getLastLocation(
                    singletGoogleClientApi.getinstance().getGoogleApiCLient());
        }
        else {
            initialise();
        }
    }
    catch (SecurityException e) {
        e.getStackTrace();
    }
}

@Override
public void onConnectionSuspended(int i) {
    Log.e("ON CONNECTION SUSPENDED","PETROL");

}

@Override
public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {
    Log.e("COnnection ","DIESEL");

}

}

questionAnswers(2)

yourAnswerToTheQuestion