I am trying to create a register activity to allow a user to register however I keep getting the error: Cannot resolve method ‘setTimestampsInSnapshotsEnabled’ in ‘Builder’” It’s only the section which has the setTimestampsInSnapshotsEnabled that is giving me the issue. Do I need…
Tag: google-cloud-firestore
How to add new key to map in Firestore
I want to add new key to a map. memberFees is a field of a document under collection named Faculty I want to store only the key of each member fee inside the memberFees map. Here is an example of my memberFees map: I only added that keys in the example manually. This is what I did: This code throws
How to make auto refreshing on recyclerview Android while getting data from firebase firestore
I added a swipe SwipeRefreshLayout but the data only show when I swipe down to refresh. If I don’t refresh the data didn’t show. I want an auto refresh on the background when an activity is created. This is my XML After getting data from the firebase I added it to the list and add that list into t…
how can i get all the data in document firestore?
current i am working to my school project using android studio, it is an attendance system where I store my data to Firestore and the user are able to download/export the data to become Excel file. What I am trying to do is how can I get the all data in a single document of a Collection in firestore here̵…
Read Firestore Data in Android Java
i am working on android application and i am trying to read data from the firestore. One of the key contains further object data which i want to read. i was able to read the data for purchases but purchases has further array data with contains products keys. i am unable to read that. i want a simple solution,…
Firestore does not query on every Listview custom adapter
So this is the source code of my adapter: What I am trying to do is, change the value of two of my Textviews, consignor_cList and recipient_cList from a firestore query. Initially, both these textviews are having text value as String uid of my firestore document. I want to use these id, query the whole docume…
How to give read access permission for Firestore imageurl in Java
I am able to access the Firestore image url on my browser window. I want to convert this image url into BufferedImage after reading I have to find sub-image to get barcode value presented on my image. Here is the code, I have connected with my bucket using Firestore and selecting few images from bucket based …
How to receive additional information by using firebase in android
When the user signs up the first time, I use sendEmailVerification by the following code: and here is useAccount.java Firebase information after signing up and as you can see All the information was received accurately. But I want to receive additional information when user first use the app. SO i tried to re…
How to move all records from one location to another in Firestore Database (Android Studio)
How to move all Firebase database records (not a specific record with an id) from a specific location to another. Code for moving certain records: Database structure: , Answer Method: Move data from Firestore Database (not Realtime Database) to new collection in Android Studio
Event Listener in Firestore doesn’t see field updates in documents inside collection. Android, Java
I have next firestore scheme: collection “users” – document user_id – collection “trips” – document trip_id – collection “requests” – document request_user_id with fields: and boolean field <is_accepted> On one of my pages I want to liste…