code: private void initialize() {
          selectedIndices = null;
          setNegativeButtonText(android.R.string.cancel);
          setPositiveButtonText(android.R.string.ok);
      }
docs: Initializes the preference.