// TODO: move this from NewEvent and RegisterActivity to a common file private void storeUserData(User user) { ServerRequests serverRequest = new ServerRequests(this); serverRequest.storeUserDataInBackground( user, new GetUserCallback() { @Override public void done(User returnedUser) { finish(); } }); }
private void registerUser(User user) { ServerRequests serverRequests = new ServerRequests(this); serverRequests.storeUserDataInBackground( user, new GetUserCallBack() { @Override public void done(User returnedUser) { startActivity(new Intent(Register.this, Login.class)); } }); }
private void registerUser(User user) { ServerRequests serverRequests = new ServerRequests(this); serverRequests.storeUserDataInBackground( user, new GetUserCallback() { @Override public void done(User returnedUser) { showMessage("Congraduations! The user has been created successfully."); startActivity(new Intent(Register.this, Login.class)); } }); }