4.2  203 reviews on Udemy

Android Architecture Components - View Model

Learn how to use the new View Model from Android Architecture Components
Course from Udemy
 845 students enrolled
 en
Use the new ViewModel from Android Architecture Components
Use LiveData from Android Architecture Components to reactively update your UI
Use Dagger 2 to inject a View Model
Organize an Android app to keep network logic out of the Activity/Fragment
Make RESTful API calls using Retrofit
Use AutoValue to define Models (coming January 2018)

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.

This course is focused on the ViewModel from Architecture Components. You're going to learn how to use the ViewModel to encapsulate long-running operations (network calls using Retrofit), retain data across configuration changes, and pass data between screens. You'll also see how you can use Dagger 2 to make the ViewModel injectable. 

With that said, I hope you're excited to get started. See you in class!

Android Architecture Components - View Model
$ 19.99
per course
Also check at

FAQs About "Android Architecture Components - View Model"

About

Elektev is on a mission to organize educational content on the Internet and make it easily accessible. Elektev provides users with online course details, reviews and prices on courses aggregated from multiple online education providers.
DISCLOSURE: This page may contain affiliate links, meaning when you click the links and make a purchase, we receive a commission.

SOCIAL NETWORK