I am facing a problem for 2-3 days I am trying to fix it but I can’t fix it. I am continuously getting errors on a Firebase Realtime Database function get() on a code that I have copied from Firebase Realtime Database documentation. Here is my code: Build.gradle: I am getting error on compiling code that is: The method get()
Tag: firebase-realtime-database
I want to get all child of child items one by one in firebase database
here is model class : I want that I get all food items from all categories one by one and than show every single food item data in recycler view and after getting list of all items I want that I add only those items in a list which pin value is TRUE here is the java class file code
Why is Firebase realtime database is repeatedly changing data?
I’m using the below code for inserting data to the Firebase real-time database: Answer If you only want to write the user to the database, there is no need to attach a ValueEventListener. You can only use: There is no need to read anything, or listen for real-time updates, when writing data, unless you need to do some verifications, for
App crash with GC When an object added to firebase – Android Studio
Hello I have an Android app when an update ( Insert new data in firebase or update an attribute ) is done in firebase the app will crash for 15-30 sec. when I checked the log, it show that’s in that time the GC is working and it takes a lot of time to do his work so the app
Authorize read if uid matches write uid – Realtime Database
I have a functioning app where users can signup/login, upload images, and view images that have already been uploaded by themselves, they can’t see other’s images and vice versa. My rules are therefore UID of requesting user = uid of user who uploaded the image. Here is the code: Here are the corresponding realtime database rules. It should be a
Retrieve count data from Firebase Java
I am trying to count the number of children in my DB table that meet a certain condition. If the isSeen column equals false then I want to count that, if it equals true I don’t want to count it. Currently, it’s not working but if I change the query from Query query = usersRef.orderByChild(“isSeen”).equalTo(true); to Query query = usersRef.orderByChild(“isSeen”);
Get Value From Realtime Firebase Inside Child
Greeting everyone, im working a project right now and need help for firebase realtime database. My firebase Project As you guys can see in the above picture, inside student, I have matric number, and inside matric number have block and department. I have a barcode scanner which scan the value of department and return to get the matric number. Any
Firebase Database gives null values
This is my Firebase Database snippet I am trying to get the name of the expense and the expense amount and set it into a RecyclerView. This is my adapter for the RecyclerView: This is my POJO class for Expense Model This is my code snippet The log shows that every value in the expense class has been set to
How to get Each value from Firebase?
How can I get each value from Firebase and set it to my variable (Lat&Long) My Code : and The log result said Answer Since you’re using Java, here is the code that can help you read the value of Lat, as well the value of Long: As you can see, there is no need for any loop. You can
Database URL do not match
I’m trying to send user’s data to Realtime Database in SignUpActivity in my project. For that I created a database reference and copied the url that is written in my Realtime Database with the following code: However, when launching the app I get Fatal exception stating the following: 2022-06-21 14:50:24.921 8323-8323/com.dinocodeacademy.maingoquizagain E/AndroidRuntime: FATAL EXCEPTION: main Process: com.dinocodeacademy.maingoquizagain, PID: 8323 java.lang.RuntimeException: