I find that the code is clearer to seperate my click handlers. Add this in the onCreate method:
signInbutton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
// do stuff for signInButtonClick
}
});
// same for other button