code: @TargetApi(Build.VERSION_CODES.FROYO)
      public static UiModeManager getUiModeManager(Context context) {
          return (UiModeManager) context.getSystemService(Context.UI_MODE_SERVICE);
      }
docs: Get the {@link android.app.UiModeManager} service for this context.
  @param context the context.
  @return the {@link android.app.UiModeManager}