Advertisement
Guest User

Untitled

a guest
Apr 21st, 2017
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. private void setupLoginButton() {
  2. // Set up the button to add a new fish using a seperate activity
  3. buttonLogin = (Button) findViewById(R.id.buttonLogin);
  4. buttonLogin.setOnClickListener(new View.OnClickListener() {
  5. public void onClick(View view) {
  6. Log.d("CIS3334", "Signing in the user");
  7. String email = editTextEmail.getText().toString();
  8. String password = editTextPassword.getText().toString();
  9. signIn(email, password);
  10. }
  11. });
  12. }
  13.  
  14. private void setupCreateButton() {
  15. // Set up the button to add a new fish using a seperate activity
  16. buttonCreateNewUser = (Button) findViewById(R.id.buttonCreate);
  17. buttonCreateNewUser.setOnClickListener(new View.OnClickListener() {
  18. public void onClick(View view) {
  19. Log.d("CIS3334", "Creating a new user account");
  20. //create account for new users
  21. String email = editTextEmail.getText().toString();
  22. String password = editTextPassword.getText().toString();
  23. createAccount(email,password);
  24. }
  25. });
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement