/sample-lifecycle

Sample project that demonstrates concept of lifecycle observation.

Primary LanguageJava

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).