Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

1 vote
2 answers
56 views

App Crash com.google.gms:google-services:4.3.15

I encountered below problem. Problem: App Crash com.google.gms:google-services:4.3.15 FATAL EXCEPTION: main java.lang.RuntimeException: Unable to start activity ComponentInfo{com.xxx.yyy/com.xxx.yyy....
Ed Cao's user avatar
  • 11
0 votes
0 answers
32 views

Firebase realtime database always return null list while using viewmodel

Firebase realtime database always return null list while using viewmodel/livedata. But if I use the same code in Fragment itself it works. this is my viewmodel package com.example.taxinfo.viewmodel ...
Ujjwal Malhotra's user avatar
0 votes
1 answer
48 views

Cannot display Data from my layout viewBinding

I am new to Android Studio. I have been following a tutorial on how to create a Kotlin-based MVVM app with Firebase. I created a data class called ServiceOrder that contains all the necessary data ...
Dexia's user avatar
  • 3
0 votes
1 answer
37 views

Firebase RecyclerView not Displaying Retrieved Data in Fragment Despite Successful Fetch and Adapter Setup In kotlin Xml Android

I'm unable to display data retrieved from the Firebase Realtime Database in a RecyclerView within my Android application. Despite successfully fetching the data (as confirmed by logging), the ...
NETHRAN Kumaraswamy's user avatar
0 votes
1 answer
61 views

Firebase Caching in Jetpack Compose

@HiltAndroidApp class MelonFeedApp: Application() { override fun onCreate() { super.onCreate() FirebaseDatabase.getInstance().setPersistenceEnabled(true) } } MelonFeedApp.kt ...
Vedant's user avatar
  • 3
2 votes
1 answer
59 views

How to create a list inside an object by userID in Kotlin for Firebase Realtime Database?

I'm working on an Android project using Kotlin and Firebase Realtime Database. I want to structure my data in such a way that each user has a list of conversations with other users. Each conversation ...
Sahar Batool's user avatar
1 vote
1 answer
58 views

DataSnapshot.getValue() undocumented strange behaviour

What's going on here? assertEquals(mapOf("161" to "a", "163" to "b"), Firebase.database.getReference("case").get().await().value) assertEquals(mapOf(&...
nbransby's user avatar
  • 381
0 votes
0 answers
20 views

Android - Data fetched from Firebase is not added to the list

I have a fragment in Kotlin and I am trying to get data from Firebase. I already get data from Firebase but the code does not works when it comes to add datas to "myPetsList" list. Here is ...
Mehmet Akif Çelebi's user avatar
0 votes
1 answer
37 views

Firebase RTDB: How do multiple queries handled under the hood? [duplicate]

My case is the following. I make two calls like ref.get() at the same time. The first call asks for a bit larger piece of data (5MB), than the second one (100KB). How Firebase SDK for Android will ...
Konstantin Konopko's user avatar
0 votes
2 answers
63 views

how to retrive data from firebase realtime database as a list

I am working on an Android project and have a button that inserts data into the Realtime Database child and it's working fine. but now i need to get that data as a list and append it to listof to be ...
ali hamad's user avatar
0 votes
0 answers
18 views

android studio project with fire base error

I have an Android application where I initially populated a RecyclerView with dummy data in the MainActivity. Later, I integrated Firebase Database to fetch real-time data for populating the ...
Seletka's user avatar
0 votes
0 answers
44 views

Why Firebase Realtime database not working?

I am trying to add a realtime database but it is not working. private lateinit var databaseReference: DatabaseReference After this, in oncreate, I am calling a function call buyer(). private fun ...
Ajay Satpati's user avatar
0 votes
2 answers
78 views

Firebase RTDB: Offline cache behaviour issue

The issue is about of RTDB (when offline) still return data or just make no callback when I making a request to non-synced node. Please look at details below. I set offline mode on for my DB: db....
Konstantin Konopko's user avatar
0 votes
0 answers
37 views

Firebase RTDB: Filtering by timestamp issue

Querying in Firebase RTDB looks simple, but I have a problem. Database structure see below. I need filter trips by finishTime. For all my queries I'm gettin all nodes inside trips/* with no filter ...
Konstantin Konopko's user avatar
0 votes
0 answers
71 views

How can I stop updating the RecyclerView in the fragment?

I am currently creating an app in Android Studio via Kotlin, where several fragments (BottomNavigationBar) are bound in the MainActivity. In one of the fragments is a RecyclerView, which gets the ...
Justin Olsson's user avatar

15 30 50 per page
1
2 3 4 5
70