Lifecycle & Architecture

5 concepts · 10 practice questions

Activity lifecycle

onCreate, onStart, onResume, then onPause, onStop, onDestroy. Started means visible, resumed means in the foreground. A configuration change such as rotation destroys and recreates the Activity by default, so any state held only in the Activity is lost.

Also covered

ViewModel
Process death
Lifecycle-aware collection
Unidirectional data flow

Sign in to read the rest and take the 10-question test.

Sign in to continue