I’m building a Fragment with a RecyclerView which displays notices retrieved from my database. Everything works fine, except for this line of code: Problem: recyclerViewAdapter.getItemCount() This statement returns 0 even if the RecyclerViewAdapter has elements present. The full scenario is whenever the fragment loads, the Toast with the appropriate message pops up, but then after a slight delay, the first
Tag: firebase
When i retrive children from firebase using recylceview TextView Won’t Show
I’m using Android Studio when I run my app and add or show RecycleView list, text view shows only the title not data inside firebase this is the textviewaddCateogryclass What would be causing this? used the same data on firebase child. firebase realtime database Firebase ModelCategoryClass AdapterCategoryClass CategoryAddActivity class Answer The following lines of code: Should be changed to: Meaning
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 receive additional info by following code and this
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
Firebase Verify Badge [closed]
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 2 months ago. Improve this question
I got the following error while pulling data from android studio Firebase
I could not understand the problem. It gave such an error when trying to pull the information from the Realtime Database or code.firebasteki to the screen, what is the problem? Book MainActivity RecyclerView_Config FirebaseDatabaseHelper firebase E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.phonebook, PID: 14998 com.google.firebase.database.DatabaseException: Failed to convert value of type java.lang.Long to String at com.google.firebase.database.core.utilities.encoding.CustomClassMapper.convertString(CustomClassMapper.java:426) at com.google.firebase.database.core.utilities.encoding.CustomClassMapper.deserializeToClass(CustomClassMapper.java:217) at com.google.firebase.database.core.utilities.encoding.CustomClassMapper.deserializeToType(CustomClassMapper.java:179) at
How do I retrieve data under UID for the signed in user with Firebase
I saved some data under a node with the currently signed in user UID, along with the post timestamp.I successfully manage to retrieve all the data under this node, but I would only like to retrieve the data for the currently signed in user, I am trying to create something similar to how amazon stores an item in the cart
get data with query from document collection and document subcollection in firestore
I have a collection with “grup” name and have a subcollection named “anggota”. Please help me, how to display data by query referring to collection document and subcollection document. Firestore collection: I’ve tried with this query but it doesn’t work, the data doesn’t appear Answer When you are using the following query: It means that you are creating a reference
How to show Posts by Specific users in a recyclerview using FirebaseUI library (Java Android)
I am using FirebaseUI library for my social app. I was able to retrieve posts by all users into a recyclerview. My goal is to have another option where users can view and edit their own posts. I cant seem to get user specific posts from the database, how do I go about doing this? Also I’m using a recyclerview
How can I delete a document in Firebase after sorting by a specific field?
I am currently working with Android Studio (with Java) and am having some trouble deleting a document. Say I am using a “Collection” with a “document” with a specific “field”. I need to delete the document if the field is “apple” but I don’t know the actual document name. Currently the code that I am using (by looking at other