Skip to content Skip to sidebar Skip to footer

Trying To Display Users Information In A Recyclerview - Firebase

My app is using Firebase. The user can register and login. In the main activity, there is a menu option called All Users. All I want for now is to display the registered users in a

Solution 1:

As explained in the page that you linked, you need to do the following:

@OverrideprotectedvoidonStart() {
super.onStart();
adapter.startListening();
}

@OverrideprotectedvoidonStop() {
super.onStop();
adapter.stopListening();
}

You need to add startListening() to begin listening for data, and the stopListening() call removes the event listener and all data in the adapter.

Post a Comment for "Trying To Display Users Information In A Recyclerview - Firebase"