code: private OnClickListener createPreferenceButtonListener() {
          return new OnClickListener() {
  
              @Override
              public void onClick(final View v) {
                  Intent intent = new Intent(MainActivity.this, SettingsActivity.class);
                  startActivity(intent);
              }
  
          };
      }
docs: Creates and returns a listener, which allows to show a default {@link PreferenceActivity}.
  
  @return The listener, which has been created as an instance of the type {@link
  OnClickListener}