Skip to content

Instantly share code, notes, and snippets.

@UtkuGlsvn
Created February 20, 2019 10:58
Show Gist options
  • Save UtkuGlsvn/ee1d4a9be20329844891f9c3b891ba26 to your computer and use it in GitHub Desktop.
Save UtkuGlsvn/ee1d4a9be20329844891f9c3b891ba26 to your computer and use it in GitHub Desktop.
Sign up
myAut.createUserWithEmailAndPassword(mail,password).addOnCompleteListener(new OnCompleteListener<AuthResult>() {
@Override
public void onComplete(@NonNull Task<AuthResult> task) {
if(task.isSuccessful()) {
Toast.makeText(getBaseContext(), "Successful!", Toast.LENGTH_SHORT).show();
startActivity(new Intent(SignupActivity.this, MainActivity.class));
}
else
Toast.makeText(getBaseContext(), "Problem...", Toast.LENGTH_SHORT).show();
dialog.dismiss();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment