Top "Android-livedata" questions

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

ViewModel onchange gets called multiple times when back from Fragment

I am working with Android architecture components. What i want is when user type "0" in Edittext and click on Button …

android android-livedata
Room : LiveData from Dao will trigger Observer.onChanged on every Update, even if the LiveData value has no change

I found that the LiveData returned by Dao will call its observer whenever the row is updated in DB, even …

android android-room android-livedata
MediatorLiveData or switchMap transformation with multiple parameters

I am using Transformations.switchMap in my ViewModel so my LiveData collection, observed in my fragment, reacts on changes of …

android observer-pattern android-architecture-components android-livedata android-viewmodel
Get item by id in Room

I'm using Room + LiveData in my Android project. Following to Google Blueprints, I've implemented data layer of my application. This …

android android-room android-architecture-components android-livedata
When to use MutableLiveData and LiveData

when to use MutableLiveData and LiveData means the area of using the methods : MutableLiveData<User> getUser() { if (userMutableLiveData == …

android android-architecture-components android-livedata
Observe LiveData from foreground service

I have a repository which holds the LiveData object and is used by both activity and a foreground service through …

android android-service android-livedata
How to make retrofit API call using ViewModel and LiveData

this is the first time I'm trying to implement MVVM architecture, and I'm a bit confused about the correct way …

android mvvm retrofit android-livedata android-jetpack
Android Room : LiveData callback of update insert?

I have a Simple DAO including CRUD function FeedEntryDAO.java @Dao public interface FeedEntryDAO { @Query("SELECT * FROM feedEntrys") LiveData<…

android android-room android-architecture-components android-livedata
Failed to resolve: androidx.lifecycle:lifecycle-extensions-ktx:2.0.0-alpha1

I am trying to understand ViewModel and LiveData concepts in android. I am making a practice project but when i …

android kotlin android-architecture-components android-viewmodel android-livedata
What is lifecycle observer and how to use it correctly?

I have read about new architectural components in Android. So, i wanted to ask what are lifecycle observers and why …

java android mvvm android-lifecycle android-livedata