code: private String getDialogMessage() {
          SharedPreferences sharedPreferences =
                  PreferenceManager.getDefaultSharedPreferences(getActivity());
          String key = getString(R.string.dialog_message_preference_key);
          String defaultValue = getString(R.string.dialog_message_preference_default_value);
          return sharedPreferences.getString(key, defaultValue);
      }
docs: Returns the message of the example dialog.
  
  @return The message of the example dialog