android-build-an-app-architecture-components icon indicating copy to clipboard operation
android-build-an-app-architecture-components copied to clipboard

9. Introduction to LiveData and ViewModels - LifecycleActivity

Open DefaultXYZ opened this issue 7 years ago • 3 comments
trafficstars

LifecycleActivity has been deprecated since android.arch.lifecycle libs are stable version.

Fourth step in introduction to ViewModels can be removed

DefaultXYZ avatar May 10 '18 11:05 DefaultXYZ

+1. Do it.

mfgabriel92 avatar May 13 '18 05:05 mfgabriel92

+1

WelconeHuang avatar May 23 '18 00:05 WelconeHuang

  1. Introduction to LiveData and ViewModels -->Your Turn: The DetailActivityViewModel -->4.Open ui.detail.DetailActivity. Have DetailActivity extend LifecycleActivity instead of AppCompatActivity.

:dagger: Yup! That point needs to be Removed. :dagger:


Reason : https://stackoverflow.com/questions/23089547/difference-between-extending-lifecycleactivity-activity-actionbaractivity-appc/23090310

KunalDhyani avatar Mar 22 '19 13:03 KunalDhyani