Skip to content
Advertisement

Tag: firebase-realtime-database

recyclerViewAdapter.getItemCount() returning 0 even when it has objects inside?

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

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

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

Advertisement