How to get the key of a pushed value

In Firebase Realtime Database on Android, I want to retrieve this id “-Mb1sSv-FCNr9ElxZIwN”. databaseReference = FirebaseDatabase.getInstance().getReference().child(“Registration Data1&…

What is the difference between get() and addListenerForSingleValueEvent?

I see a lot of tutorials, documentation and questions about using the Firebase Realtime Database on Android talk about the addListenerForSingleValueEvent method. This method reads the value from the …

Why counter just increase to 1 in firebase?

im trying to increase a visitor counter views when access to read a message, so i made a method called incrementar () and set it where i retrieve info when someone click to open that post. But i dont …

Select next value firebase android

I’d like to get first register and then the second one when user click in next button, and so on… I have this:

snapshot.getValue(User.class) is returning null

I was working on this User information project. I have created login registration for users. The project supposed to show information about logged-in users. When users log in to their profile, it is …

How to filter data in FirebaseRecyclerOptions by spinner?

I’m using Firebase Database to show data in RecyclerView. Now I want to add a filter option by using an Android spinner. When I try to use different queries code doesn’t work. How can I use the …

Show data from Firebase in Recyclerview, filtered on username – How to?

With the following line of code I’m able to show the data under “results” of the User “Hendrik”. Query query = FirebaseDatabase.getInstance().getReference(“users/Hendrik/…

Put firebase data in a JTable

I am struggling to put some firebase data into a jtable in java swing. As seen in photo I’ve been able to retrieve the data from firebase but for some reason the data won’t be displayed in the JTable …

Data retrieve on Data Change in firebase getting Error

I am making an android app based on firebase. My logcat showing error on data change. Here is the code: myRef.child(“first”).addValueEventListener(new ValueEventListener() { @…

dataSnapshot could not get parent push key value

I want dataSnapshot to check if “month” exists in its parent’s “summary”. But dataSnapshot is returning that it does not have “month” in “summary” ds = …