This is Flip a coin app and Records the Flip History.
This Example Show's:-
- How to use fragments with ViewModel.
- How to make Simple app with Setting in Andorid.
- How to use Thread Pool to save in data in background.
- Database Operations use:-
- Insert.
- Delete.
- Android architecture components:-
- LiveData.
- ViewModel.
- Room Persistence Library.
Here we are using LiveData instead of Loader. We can use LiveData instead of Loader. You can Check this documentation for Loader and LiveData Click here.
- Can we use LiveData instead of Loader?
Ans:- Yes we can use LiveData instead of Loader.