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 th…
Tag: firebase
How can I solve this new Firebase Auth error?
As normal I was working on my actual project and I wanted to add something new to an old activity. When I opened the .java file a new error has shown with a reason that I can not think about. It says that the FirebaseAuth symbol cannot be resolved. I checked my Gradle ( which is updated to the latest
How to get a child value if another child value matches in Firebase?
My Database Structure is: In this structure, I need to get “ID” (which is autogenerated) as “ovxZPZeyy2VlZUP1K0vv9VtiThu1” if the “UserName” matches to “GokulNew1”. And I need to store the ID in String ID. And My Code is, Answer To get the key of the node (ovxZP…
Android Firestore subcollections into RecyclerView
I am currently working on a Rental Car app in Java Android Studio. For the project database, I am using Cloud Firestore. My database is structured like so: Subcollection: The first image is represented by the collection of Cars with multiple documents with random ID (each represents a car). Every car has a un…
Why do we have to call getCurrentUser() several times Firebase?
I am creating a Journal app. I am currently working on the functionality for if the user is already logged in—bypass the “get started/log in activities” In the video I am watching to create a journal app, the instructor calls mUser = firebaseAuth.getCurrentUser(); several times. He calls it in onS…
I want cumulative of production qty which I saved in key value ‘pqty’ in firebase?
I want cumulative of production qty in key ‘pqty’ property: I tried this and got output as 0. But I want output as 750. I’m using sketch ware. Answer First of all, you are storing the “pqty” property in your database as a String and not as a number, which in my opinion is a reall…
Boolean setters and getters not updating upon button click?
So I am currently developing a date android application, now what I have done here is created a simple algorithm called similarDatesFunction this function is responsible for retrieveing data and matching it with the user input, for every match a counter will be placed, if this exceeds 6 counters also known as…
Retrieve subcollection data from Firestore in Android
I keep failed to retrieve the data from subcollection “Diary” when trying on click on a RecyclerView. What I want is when I on click on a RecyclerView, it will display that data stored in the “Diary”. What’s the problem with my codes? RecyclerView Java codes: Stored data Java cod…
How to get random qestion from firebase firestore database
i m making a quiz app, in which i have categories, when i choose a category, qestions start coming from firebase firestore database , in each category i have 10 qestion in database , i want that all qestions load from firebase data base and comes in random order each time , but my problem here is all qestions…
video streaming on Fragment of an android app
i want to stream a video from the firebase storage, in a fragment of my android app. but what even i try my video doesn’t launch or the app crash when i request the fragment. being a beginner, i have followed a tuto so i used exoplayer. this is my fragment code: in addiction with : And the xml file