I have attached the firebase data image at the bottom for reference. I have a list of users. In that few users have a node called Cart. I need to display the data in the cart for that specific user. Below is my Activity code Here is my adapter class Here is my Model class I have a list of
Tag: firebase-realtime-database
Display data from user uid with Firebase Database
I want to recover data from the uid and then display them in RecyclerView. I managed to recover the child/parent under Withdrawal thanks to the uid. This is what it looks like in Java: String id = … retrieves the child value. So far everything is fine except when I add this under the String id = … : I
Can I order firebase addValueEventListeners so that they execute in a specific order? [closed]
Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 1 year ago. This post was edited and submitted for review 1 year ago and failed to reopen the
Is there any way to just pass a “user” object instead of all the variables of user
I have a login page, and right now after the user logs in I pass all of its data like the username, password and etc. I wanted to know if it’s possible that I just pass like a whole user and it that user object I can just use getter and setters to get the user-related info. I am working
Difference between addChildEventListener, addValueEventListener, and addOnCompleteListener when using orderByChild()?
I’m trying to sort and display data from Firebase using orderByChild() and used: I kept on wondering why it’s not sorting until I realized that childEventListener was used in the documentation. It should’ve been: What is the difference between the two and addValueEventListener when it comes to using orderByChild or any sorting method? Does get() not follow orderByChild()? Answer All
Displaying data from Firebase into custom Info Window
I’m trying to display a couple of user details from Firebase into a custom Map Marker after the location data has been retrieved from the database but I don’t know if I should implement FirebaseRecyclerAdapter or a normal one. How should I do this? I’m trying to at least retrieve the user’s name, emergency type, and alert level and display
FirebaseAuth does not print realtime data in the membership creation step
I have created a membership system in my application. I create record with Firebase Auth and store some information in firebase realtime . However, I saw that 1% of the users did not print their data to firebase realtime during record creation. If users’ data is not written to firebase realtime, my application will crash. I haven’t been able to
How to search in firebase database
I’m trying to filter the data from my database using this code: My database is like this: While the code works, it only returns the first value that matches the query and doesn’t fetch the rest of the data even though it matches. If I put a “T” as my search query, I just get the first title “Technical Sciences
How to set ImageView in the AlterDialog Box
I am fetching the text and imageUrl from Firebase Realtime Database. I want to show the image and then display the text in the AlertDialogBox. I am able to fetch the text and imageUrl. Able to set the text using setTitle() but when trying to display the image, not able to implement so. Referred this but there in they are
How to get “Text” in TextView from RealTime Firebase
How to get text in TextView from RealTime Database using Java? Answer To get the value of “text” field that exists under your “app_billing” node, please use the following lines of code: