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-realtime-database
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
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
How do I display child of child’s data from firebase in my RecyclerView?
I want to show data of all children inside all the Categories from the database (added the image below of what my database looks). I am adding data to my RecyclerView using the adapter which needs FirebaseRecyclerOptions object to be passed. I saw one answer where DataSnapshot was used to get child of child data, I tried to get the
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
My app is gets back to previous page without updating data to database. (Using Android studio + Firebase)
My app is gets back to previous page without updating data to database. (Using Android studio + Firebase) This is the java code for the activity This is the log at that time, I had already tried to debug but couldn’t get any solution…………………………………………………………………………….. Answer You should initialize your storage reference before you call its child, so inside your uploadImage(),
Firebase Database encountered an OutOfMemoryError. You may need to reduce the amount of data you are syncing to the client
The database in the /users folder has almost 50,000 user records and I am not able to read the keys because it is overflowing with memory. This occurs in the java environment on the mobile device as well as in javaScript on the server with firebase functions. The database has persistence enabled. A simple datanapshot.getChildrenCount() in the /users folder is
How to check a child value in firebase and hide a button for that user logged in?
I want to hide a Button in my app when the user that is logged in has a specified value in the Realtime Firebase Database. So I have a child where the value changes between Yes or No it depends on what rights the user is having. So I want to hide a Button when a user has the value