My project is an expense tracker where I show a list of Dates under which I have a list of expenses that happened on those dates. I have nested Recycl ...
My project is an expense tracker where I show a list of Dates under which I have a list of expenses that happened on those dates. I have nested Recycl ...
Please help me with my problem. The app with these same codes was working perfectly but now the app crashes whenever I try to navigate from Overview f ...
I am writing a Kotlin app and using Firestore as my db. I have 2 LiveDatas, to keep my current user's data, defined like so: somehow userData is nu ...
I have an IOTCamera function inside viewModel with Loop. The function should repeatedly call the repository GET function based on the "selectedSlot" p ...
MeetingViewModel There is a singleton repository using kotlin's object declaration. Repository has a live data which is being observed by BaseActiv ...
Recently i've been learning transformations methods on LiveData I know that we can use map or switchMap method to transform livedata. Let's say we ha ...
I have a ViewModel class with 2 livedata observables (eg a and b) that are both of a nullable type and I want to add a new boolean observable (eg c) t ...
I am facing and issue with Android LiveData and Transformation map. I am gonna explain the case: I have a SingleLiveEvent and LiveData as follows (on ...
I am writing a program in which i have two LiveData objects as shown: The problem is whenever I observe the chosenImages LiveData it works fine, bu ...
I have a ViewModel which handle showing transactions and transactionSummary LiveData The transactions come from Room which return LiveData<T> ...
I've a livedata which emits everytime there is a update in the database. When the particular screen opens, this livedata emits immediately with whatev ...
I have 3 LiveData objects in my ViewModel, I'm applying transformations to these, the problem is 2 LiveData are getting observed while the other one i ...
In architecture samples , There is an extension of MutableLiveData named SingleLiveEvent which helps us prevent a LiveData from firing on phone rotati ...
I am facing a strange, but huge difference in behaviour between observing LiveData that is exposed as a method and LiveData that is exposed as variabl ...