I would like to add button to link to another activity on RegisterActivity with the following code
public void setOnAccountCreationFirstViewListener(OnAccountCreationFirstViewListener listener) {
mListener = listener;
}
/**
* Interface for listeners of {@link AccountCreationFirstView}
* see {@link AccountCreationFirstView#setOnAccountCreationFirstViewListener}
*/
public interface OnAccountCreationFirstViewListener {
/**
* User asked to create the account
*/
/**
* User asked to edit : he has an existing account
*/
void onEditAccountRequested();
}
}
Can anyone please help me adding a button to activity called RegisterActivity the button id is button2