Skip to content

Instantly share code, notes, and snippets.

View boomboompower's full-sized avatar
🐧
LGTM

boomboompower boomboompower

🐧
LGTM
View GitHub Profile
@boomboompower
boomboompower / Android Firebase Auth
Last active April 5, 2018 22:57 — forked from ahtaufiiq/Create Account dan Sign In
Create Account and SignIn using Firebase Authentication
private void createAccount(final String email, final String password) {
mAuth.createUserWithEmailAndPassword(email, password)
.addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {
@Override
public void onComplete(@NonNull Task<AuthResult> task) {
if (task.isSuccessful()) {
Intent i = new Intent(LoginActivity.this, MainActivity.class);
startActivity(i);
} else {