@Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.enroll2sv_add_account);

    setSupportActionBar((Toolbar) findViewById(R.id.add_account_toolbar));
    getSupportActionBar().setDisplayHomeAsUpEnabled(true);
    getSupportActionBar().setDisplayShowHomeEnabled(true);
    getSupportActionBar().setDisplayShowTitleEnabled(false);

    findViewById(R.id.enroll2sv_choose_account_page_scan_barcode_layout).setOnClickListener(
        new OnClickListener() {
          @Override
          public void onClick(View view) {
            startActivity(AuthenticatorActivity
                .getLaunchIntentActionScanBarcode(AddAccountActivity.this, true));
          }
        });

    findViewById(R.id.enroll2sv_choose_account_page_enter_key_layout).setOnClickListener(
        new OnClickListener() {
          @Override
          public void onClick(View view) {
            startActivity(new Intent(AddAccountActivity.this, EnterKeyActivity.class));
          }
        }
    );
  }
2-step verification enrollment wizard page for adding an account scanning a QR code or manually
entering its details (name and secret key).
java/com/google/android/apps/authenticator/enroll2sv/wizard/AddAccountActivity.java