ersiver / sample-lifecycle

Sample project that demonstrates concept of lifecycle observation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sample-lifecycle

This app was built following AndroidDevelopers Codelabs. The app demonstrates:

  • The activity and fragment lifecycles.
  • Concept of lifecycle observation.
  • Use of th lifecycle library to shift lifecycle control from the activity/fragment to the actual component that needs to be lifecycle-aware.
  • Preserving activity and fragment state (eg. Configuration changes or process shutdowns) with onSaveInstanceState.
  • Logs with Timber.
  • Uses of background thread for the timer, with Runnable and Handler classes.

License

Copyright 2019 Google, Inc (all resources are from AndroidDevelopers Codelabs).

About

Sample project that demonstrates concept of lifecycle observation.


Languages

Language:Java 57.6%Language:Kotlin 42.4%