Lapit Chat App - Retrieving Message - Firebase Tutorials - Part 29 | Android Studio
117 بار بازدید -
7 سال پیش
-
ERROR FIX : App Crash
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
7 سال پیش
در تاریخ 1396/11/14 منتشر شده
است.
117
بـار بازدید شده