Skip to content

Instantly share code, notes, and snippets.

@edwardinubuntu
Created March 28, 2015 03:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edwardinubuntu/9cc671caba8e309adb37 to your computer and use it in GitHub Desktop.
Save edwardinubuntu/9cc671caba8e309adb37 to your computer and use it in GitHub Desktop.
User Signup
ParseUser user = new ParseUser();
user.setUsername(emailEditText.getText().toString());
user.put("name", userNameEditText.getText().toString());
user.setEmail(emailEditText.getText().toString());
user.setPassword(userPasswordSignUpConfirmEditText.getText().toString());
user.signUpInBackground(new SignUpCallback() {
@Override
public void done(ParseException e) {
rootView.findViewById(R.id.user_signup_progressBar).setVisibility(View.GONE);
if (e == null) {
// Hooray! Let them use the app now.
putNeedUpdate();
getActivity().finish();
} else {
// Sign up didn't succeed.
userErrorTextView.setText(e.getLocalizedMessage());
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment