@Override public void onStatusChanged(String provider, int status, Bundle extras) { switch (status) { case LocationProvider.AVAILABLE: // binder.startRecord(); Helper.Logger.i("Location provider is available."); break; case LocationProvider.OUT_OF_SERVICE: Helper.Logger.w("Location provider is out of service."); // binder.stopRecord(); break; case LocationProvider.TEMPORARILY_UNAVAILABLE: Helper.Logger.w("Location provider is temporarily unavailable."); // binder.stopRecord(); break; } }
@Override public void onProviderDisabled(String s) { Helper.Logger.w("Location provider is disabled."); }