Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void setupLoginButton() {
- // Set up the button to add a new fish using a seperate activity
- buttonLogin = (Button) findViewById(R.id.buttonLogin);
- buttonLogin.setOnClickListener(new View.OnClickListener() {
- public void onClick(View view) {
- Log.d("CIS3334", "Signing in the user");
- String email = editTextEmail.getText().toString();
- String password = editTextPassword.getText().toString();
- signIn(email, password);
- }
- });
- }
- private void setupCreateButton() {
- // Set up the button to add a new fish using a seperate activity
- buttonCreateNewUser = (Button) findViewById(R.id.buttonCreate);
- buttonCreateNewUser.setOnClickListener(new View.OnClickListener() {
- public void onClick(View view) {
- Log.d("CIS3334", "Creating a new user account");
- //create account for new users
- String email = editTextEmail.getText().toString();
- String password = editTextPassword.getText().toString();
- createAccount(email,password);
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement