Hello everyone, thanks for stopping by!
Android development has many things going for it; it’s easy to get started, low cost, great tools, and you can build something that can run on billions of devices.
One of the big complaints from developers has been handling the Android component lifecycle. Activities and Fragments can be destroyed at any time and recreated. This means that you will lose any information that you don’t explicitly save in the Bundle provided to onSaveInstanceState. However, even then, saving everything into the Bundle not only adds a lot of boilerplate, but you have to deal with a very low size limit of what you can put into the Bundle. This leads to juggling a database, or some other persistent storage, just so you can retain data across configuration changes. Or, you could use singletons which introduces another type of complexity.
There are ways to handle this that require a relatively steep learning curve (for example, using Dagger 2 with scopes). Google thought that there should be something with a lower barrier to entry for developers to use.
Google recently released Architecture Components for Android. These are a collection of libraries that, among other things, help developers manage data without having to worry so much about Activity or Fragment lifecycles.
Instructor Details
Courses : 2
Specification: Android Architecture Components – View Model
|
9 reviews for Android Architecture Components – View Model
Add a review Cancel reply
This site uses Akismet to reduce spam. Learn how your comment data is processed.
Price | $13.99 |
---|---|
Provider | |
Duration | 1 hour |
Year | 2018 |
Level | All |
Language | English |
Certificate | Yes |
Quizzes | Yes |
$19.99 $13.99
Sergio Alberto Morales Ortiz –
Great course at the moment, I learned a lot
Manuel Mariano Silva –
Fue un muy buen curso, s lo que por ah el instructor iba demasiado r pido y uno no llega a comprender del todo qu es lo que hace cada librer a, sobre todo en la parte m s avanzada, ya que requieren de un nivel de interpretaci n muy alto que, sin profundida te rica, es dif cil.
Ajaxian Azarenka –
Course goes on in good pace, however code is very simple so far
Bahaa Melhem –
your not using data binding from google you still us java rather than Kotlin
Kaushik N. Sanji –
The course uses simple examples to get one started with using the ViewModels. Also, introduces to Dagger Dependency injection technique to be used with ViewModels. It highlights the use of AutoValue, which is a good extra to learn. But I feel some more info and links (GitHub and articles) needs to be given in the intro slide such that the students can follow. I found it a little hard over here, but was able to manage. This was the only rushed through topic (along with Dagger) according to me in this whole course. For ViewModels alone, this course is good. Hence giving 4.5 instead of 5.
Owen Thompson –
Well presented and explained. Would have liked to see more up to date version using Kotlin.
Marta Rodrigues Pedroso –
The best course of View Model!!!!
Marcos Avila Rodriguez –
Quede mas que satisfecho con el contenido, ejemplos directos y al punto. Quiero destacar los consejos que proporciona al usar Moshi, Dagger 2, AutoValue, son realmente tiles.
Noel Villaman –
I learned a lot new things about View Model with Android and Dagger and more. It is a little big advance, so if you are very new, you might get frustrated, if you are like me you will like it.