Skip to content

Spotify Clone App: Lesson 5

Mert Şimşek edited this page Oct 14, 2019 · 5 revisions

Overview

In this lesson, we will learn

What is our concern?

Users are generally interrupted by other applications(incoming calls, music player app to skip to the next song, etc.). So Is your app ready for those scenarios? ViewModel and LiveData come to help in these situations. They provide us a way to save loaded data in a LiveData and keep ViewModel instance even if user changes device orientation.

End of this lesson, our app will be lifecycle aware and memory efficient.

Dependencies

implementation "androidx.lifecycle:lifecycle-extensions:2.1.0"
kapt "androidx.lifecycle:lifecycle-compiler:2.1.0"

Source code

Branch Lesson 5

Lesson Video

  • Will be available on youtube soon.