How to get the data from x document and upload it to a new document called ‘name’ and then delete the old one in java I’ve got this code snippet from a Bjorn Reemer but I am unable to get it working in android java Answer you should use a transaction
Tag: firebase
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 returning a null reference. Answer The key of the user node that is showing in your JSON (-MRF…J0KL) was generated by calling push() in a DatabaseReference. It
listAll() does not work for firebase in Android
i have created a function to list all files with in a reference.mStorageRef is defined public. public void ListFiles() { Log.d(“FETCHING_DATA_STATUS”,”STARTED”); …
Firebase firestore problem ‘Make sure to call FirebaseApp.initializeApp(Context) first’
I’m doing a new project in Android Studio. I’d like to make my project in latest version and with Firebase Firestore to keep data. I know that i need to put apply plugin: ‘com.google.gms.google-services’ but i don’t find how .. and with lot of research, someone said that it is included in the ‘com.android.application’.. I have included my google-services.json in
Get IDs of deleted documents in firestore
I have a big collection with several thousand documents. These documents have subcollections with documents inside. Now I deleted a lot of the documents on the highest level. Structure: MyCollection => MyDocument => MySubcollection => MySubdocument Now I realized, that the files are deleted (not showing up in any query) but the subcollections and their documents still exist. Now I
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 spinner to show data for only 1 query and refresh this by changing the spinner item? This code now works without a spinner
How can I retreive values from firebase (one to many relationship)?
I can’t access name, imageurl and other properties because snapshot.getvalue returns true How can I retreive values from firebase having one to many relationship? Answer You’re trying to read the name, description and other properties from the “item01”: true node. That won’t work, since the properties don’t exist on that node. You’ll instead need to load the snapshot for that
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 field(table1) I looks like the getID(), getName()… methods didn’t get any value, since I tried to print row[i] to see if
Firebase Authentication email
Currently, I am working on an Android project. I started the project with sign up and login pages using Firebase. It goes like this: A new user enters the required details with email and password as login credentials. Meanwhile, a verification mail is sent to the provided email address, the user needs to verify the authentication by following the link
firebase getting exact childs from database
i have problem to get exact childs from database and add it to the list of “teams”. is that possible? i can’t find proper way to solve this problem. please help me. image of my actual …