@Override
  public void onCreate(final Bundle savedInstanceState) {
    onCreate(savedInstanceState, R.layout.authorization_credentials_activity);

    final Bundle extras = getIntent().getExtras();
    if (extras != null) {
      connectorUsername =
          BundleUtils.getString(extras, Intents.EXTRA_CREDENTIALS_AUTH_USERNAME, connectorUsername);
      connectorPassword =
          BundleUtils.getString(extras, Intents.EXTRA_CREDENTIALS_AUTH_PASSWORD, connectorPassword);
    }

    setTitle(getAuthTitle());

    auth1.setText(getAuthExplainShort());
    auth2.setText(getAuthExplainLong());

    checkButton.setText(getAuthCheck());
    checkButton.setOnClickListener(new CheckListener());
    enableCheckButtonIfReady();

    usernameEditText.setText(connectorUsername);
    passwordEditText.setText(connectorPassword);
    enableCheckButtonIfReady();

    if (StringUtils.isEmpty(getCreateAccountUrl())) {
      registerButton.setVisibility(View.GONE);
    } else {
      registerButton.setText(getAuthRegister());
      registerButton.setEnabled(true);
      registerButton.setOnClickListener(new RegisterListener());
    }

    final EnableStartButtonWatcher enableStartButtonWatcher = new EnableStartButtonWatcher();
    usernameEditText.addTextChangedListener(enableStartButtonWatcher);
    passwordEditText.addTextChangedListener(enableStartButtonWatcher);
  }
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState, R.layout.authorization_activity, true);

    Bundle extras = getIntent().getExtras();
    if (extras != null) {
      host = BundleUtils.getString(extras, Intents.EXTRA_OAUTH_HOST, host);
      pathRequest = BundleUtils.getString(extras, Intents.EXTRA_OAUTH_PATH_REQUEST, pathRequest);
      pathAuthorize =
          BundleUtils.getString(extras, Intents.EXTRA_OAUTH_PATH_AUTHORIZE, pathAuthorize);
      pathAccess = BundleUtils.getString(extras, Intents.EXTRA_OAUTH_PATH_ACCESS, pathAccess);
      https = extras.getBoolean(Intents.EXTRA_OAUTH_HTTPS, https);
      consumerKey = BundleUtils.getString(extras, Intents.EXTRA_OAUTH_CONSUMER_KEY, consumerKey);
      consumerSecret =
          BundleUtils.getString(extras, Intents.EXTRA_OAUTH_CONSUMER_SECRET, consumerSecret);
      callback = BundleUtils.getString(extras, Intents.EXTRA_OAUTH_CALLBACK, callback);
    }

    setTitle(getAuthTitle());

    auth_1.setText(getAuthExplainShort());
    auth_2.setText(getAuthExplainLong());

    ImmutablePair<String, String> tempToken = getTempTokens();
    OAtoken = tempToken.left;
    OAtokenSecret = tempToken.right;

    startButton.setText(getAuthAuthorize());
    startButton.setEnabled(true);
    startButton.setOnClickListener(new StartListener());

    if (StringUtils.isBlank(OAtoken) && StringUtils.isBlank(OAtokenSecret)) {
      // start authorization process
      startButton.setText(getAuthStart());
    } else {
      // already have temporary tokens, continue from pin
      startButton.setText(getAuthAgain());
    }
  }