Top "Android-livedata" questions

Android LiveData holds the value and allow it to observe changes and also respects lifecycle of the app components.

LiveData. Cannot assign to ‘value’: the setter is protected/*protected and package*/ for synthetic extension

I'm trying to implement a DB Observer with LiveData as described in the android documentation. As long as I'm programming …

android kotlin android-architecture-components android-livedata
Initialize LiveData In AndroidViewModel

I am looking for a way to initialize the LiveData object inside the ViewModel. Items are currently only getting initialized …

android android-architecture-components android-livedata
LiveData and ViewModel does not update textview

I am having a small issue, when i comment out the binding.setData(dataContainer); in onChanged while observing Livedata in …

android runnable android-databinding android-livedata
How to convert a List<Object> to PagedList<Object> and vice-versa?

PagedList<Object> is used for Android's cool paging library. To make the question as minimal as possible : If …

android rx-java2 android-architecture-components android-livedata android-jetpack
Why LiveData setValue or PostValue triggers onChange just once in the view?

LiveData setValue should have triggered the onChanged method in the Activity, however it calls only at the first time, after …

java android kotlin android-livedata android-paging
MutableLiveData not updating in UI

UPDATE: If i move to another fragment and return to this one the TextView gets updated... I am unable to …

android android-livedata mutablelivedata
Android Architecture Components ViewModel Context

I'm studying google's architecture components to implement ViewModel and LiveData to my app, and the official documentation says that: Note: …

android viewmodel android-context android-application-class android-livedata
Accessing BroadCastReceiver in Viewmodel

I am struggling in choosing the right way to pass data from broadcastReceiver to ViewModel and from there I pass …

android mvvm viewmodel android-architecture-components android-livedata
Is SingleLiveEvent actually part of the Android Architecture Components Library?

I have been using the SingleLiveData class which can be found here. My questions are: Is SingleLiveData is actually part …

android android-architecture-components android-livedata mutablelivedata
Android ViewModel inside Service (Alternative)

I have a service which provides UI that is visible to user most of the time. I was experimenting with …

android mvvm android-livedata android-viewmodel