I have to access a child from a node. I have only “value” for a specific child and to get the Type value from the same node. I have to return the value: I’ve done a lot of googling and I just can’t figure out how this works. My current version of the java code is this. Answer Get a
Tag: firebase-realtime-database
How to update the the bitmap image inside the FirebaseStorage in android without changing its downloadUrl in the realtimedatabase
I want to update the bitmap image inside the URL without changing its download URL in the real-time database because at uploading for the first time I have uploaded the image in the storage and stored it URL in the real time database now I want to update that image how should I approach this ?? above written code was
When uploading a image for one user to firebase storage, the link of the image updates for every user in database
I’m creating this app in Android Studio using Firebase Realtime Database and Firebase Storage. When a user registers through my app the data will store in the Firebase Realtime Database. Then on the profile page, there is a place to upload a picture. When a user uploads a picture it will store in the firebase storage and the link will
Using Firebase open a different activity if user logged in second time
I am using Firebase in my project. What I want?? When a new user logged in, he goes through all activities (like Information activity, etc) after login and then to the dashboard. when that user logout from the app and logged in again then directly go to dashboard not need to fill that all information again. I am using this
How to push/get data from Firebase and add to a bidimensional array using Java?
I already have TOPSIS algorithm that can calculate data from an array[][]. Now I’m going to use the data from: dummy data: to database’s data My Item_pc.class Condition: I can get data from firebase using arraylist I can calculate data using dummy array with TOPSIS algorithm problem : how to calculate data from firebase with TOPSIS algorithm? I have trouble
How do i get the new Password stored in my firebase realtime database in android studio
I just realized that when I press the forgot password in my app and change the password the password is not changed in the realtime database.Is it possible to change the realtime database as well? This is my forgot password page code this is the value stored in my database Answer Firebase Authentication doesn’t store the user credentials in the
RecyclerView on a null object reference
So I was trying to show images from firebase to recyclerview, but it threw me an error. Error says E/nitecompetitiv: [qarth_debug:] get PatchStore::createDisableExceptionQarthFile method fail. E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.fortnitecompetitive, PID: 15205 java.lang.NullPointerException: Attempt to invoke virtual method ‘void androidx.recyclerview.widget.RecyclerView.setAdapter(androidx.recyclerview.widget.RecyclerView$Adapter)’ on a null object reference at com.example.fortnitecompetitive.NewsActivity$1.onDataChange(NewsActivity.java:66) at com.google.firebase.database.core.ValueEventRegistration.fireEvent(ValueEventRegistration.java:75) at com.google.firebase.database.core.view.DataEvent.fire(DataEvent.java:63) at com.google.firebase.database.core.view.EventRaiser$1.run(EventRaiser.java:55) at android.os.Handler.handleCallback(Handler.java:907) at android.os.Handler.dispatchMessage(Handler.java:105) at android.os.Looper.loop(Looper.java:216)
How to get the key of a pushed value
In Firebase Realtime Database on Android, I want to retrieve this id “-Mb1sSv-FCNr9ElxZIwN”. Answer It looks to me that KAsr … dhz1 is the user ID that comes from the authentication process. If so, that UID should also be added to your reference. So to be able to get this id “-Mb1sSv-FCNr9ElxZIwN”, please change the following reference: To: Meaning that:
Android Studio – Firebase JAVA – Realtime Database (get value from DB and check if)
I’m studying Android Studio and Firebase to a do simple app. And is almost working. How can I grab data from firebase and store it in one Variable to check user level? So if the user has Value Ident = “associado” should be followed to AssociadoActivity. Right now everyone is sent to AdminActivity. Answer Read this article to get data
How to Query According to Different Time Zones?
I want to show the data I have stored in Firebase Realtime Database by filtering according to the date of the users. My data in the database always works according to GMT+3 timezone. But if my user’s time is different from GMT+3, the query will not work correctly. I need some information and code for this. Does anyone have any