ERROR FIX : App Crash when logout and start app
Include this in main activity 'onCreate' Method :
if (mAuth.getCurrentUser() != null) {
mUserRef = FirebaseDatabase.getInstance().getReference().child("Users").child(mAuth.getCurrentUser().getUid());
}
the line, mUserRef = Firebas....
is already included in onCreate method, you just need to wrap it in the if statement.
Hi guys,
I'll be teaching "How to Create a Chat App" in Android Studio in this series of tutorials.
If you feel these tutorial
آی-ویدئو