@Override
 public void onResume() {
   super.onResume();
   activityLightLevelManager.onResume();
 }
 @Override
 public void onPause() {
   super.onPause();
   updatePreferences();
   activityLightLevelManager.onPause();
 }