Skip to content

Instantly share code, notes, and snippets.

@nitesh-singh-1307
Created May 1, 2019 17:15
Show Gist options
  • Save nitesh-singh-1307/46656eb6f935532ef1f16144602db79d to your computer and use it in GitHub Desktop.
Save nitesh-singh-1307/46656eb6f935532ef1f16144602db79d to your computer and use it in GitHub Desktop.
private FirebaseAuth mAuth;
private EditText edit_txtemail,edit_txtpass;
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
mAuth = FirebaseAuth.getInstance();
}
@Override
public void onStart() {
super.onStart();
// Check if user is signed in (non-null) and update UI accordingly.
FirebaseUser currentUser = mAuth.getCurrentUser();
updateUI(currentUser);
}
private void updateUI(FirebaseUser user) {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment