code: private OnClickListener createWizardButtonListener() {
          return new OnClickListener() {
  
              @Override
              public void onClick(final View v) {
                  Intent intent = new Intent(MainActivity.this, WizardActivity.class);
                  intent.putExtra(PreferenceActivity.EXTRA_SHOW_BUTTON_BAR, true);
                  intent.putExtra(PreferenceActivity.EXTRA_BACK_BUTTON_TEXT, R.string.back);
                  intent.putExtra(PreferenceActivity.EXTRA_NEXT_BUTTON_TEXT, R.string.next);
                  intent.putExtra(PreferenceActivity.EXTRA_FINISH_BUTTON_TEXT, R.string.finish);
                  intent.putExtra(PreferenceActivity.EXTRA_SHOW_PROGRESS, true);
                  intent.putExtra(PreferenceActivity.EXTRA_PROGRESS_FORMAT, R.string.progress);
                  startActivity(intent);
              }
  
          };
      }
docs: Creates and returns a listener, which allows to show a {@link PreferenceActivity}, which is
  used as a wizard.
  
  @return The listener, which has been created, as an instance of the type {@link
  OnClickListener}