While Android SDK provides the APIs for using SQLite databases, they force developers to write a lot of boilerplate code. Room solves this problem by creating the glue code that saves objects to SQLite and reads them into memory. In addition, it performs some compile-time checks to ensure correctness of SQL queries.
In the previous video you learned about Room, the object persistence architecture component but we had to use the AsyncTask to perform database access in a background thread. LiveData makes it easier to perform Room's database queries on Android, since it takes care of the activity lifecycle.
In the third video of this series, we’ll add ViewModel to our application. Instead of calling the repository or other components directly from the Activity or Fragment, we can put some of that code in the ViewModel. As a result, our application will become much cleaner and it will be more testable.
In this screencast, Matt walks us through creating a Queue in Swift using generics to hold arbitrary data types. We'll be learning about collections by creating our own collection type. Watch along as we discuss the Swift language and how to construct a implementation of a custom collection. We'll be going over some guards and guarantees to constrain the types of data in our queue.
In this screencast, we’ll cover a new background work library introduced at Google I/O 2018 - WorkManager. This release will have a huge impact on most Android apps. Background work has always been painful in Android. There are many different ways to schedule a background work and of course they are different