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 …

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() { @…

How to save last visited url in android webview? [closed]

So im writing a very simple web-view app that shows certain types of users a web-page that I get from Firebase Realtime Database. Everything works just fine but upon closing an app, user gets sent …

Is there a way in firebase android to fetch data within a range?

I have a database in firebase realtime database.My DB look like this : I want to fetch data within a date range. That is if user select 03-09-2020 as start date and 05-09-2020 as end date,what i want …

save unique key firebase to child

I have a database like this “Chats” : { “-MCzU6r-JqvAkC9unjru” : { “isSeen” : false, “message” : “H”, “receiver” : “…