/LifecycleApp

Welcome to 'LifecycleApp'! I've created this project to dive into the intricate lifecycles of Android activities and fragments, offering a hands-on exploration of these core components in different scenarios. Join me on this journey through the Android app lifecycle!

Primary LanguageKotlin

LifecycleApp

LifecycleApp is an Android project that demonstrates the lifecycle callbacks of Android activities and fragments in various scenarios. It provides a visual representation and logging of the lifecycle events for activities and fragments during the following scenarios:

  1. Starting an Activity
  2. Transitioning from one Activity to another
  3. Adding, replacing, or removing a Fragment
  4. Application going in the background and coming back to the foreground from the background

Table of Contents

Features

  • Showcases the complete lifecycle of Android activities and fragments.
  • Visual representation and logging of lifecycle callbacks.
  • Provides insight into key scenarios where lifecycles are crucial.
  • Easily customizable and extensible for further learning and experimentation.

Demo

Usage

Launch the app to see the main activity's lifecycle callbacks. Use the app to explore the different scenarios mentioned in the project description. Observe the logging and visual indicators for each lifecycle callback. Analyze the code to understand how lifecycles work in Android.

License

This project is licensed under the MIT License.