Skip to content

SachanKapil/ActivityFragmentLifecycleApp

Repository files navigation

ActivityFragmentLifecycleApp 📱

This Android app, ActivityFragmentLifecycleApp, is designed to help you understand the lifecycle of activities and fragments. It includes all possible navigation operations and their impact on the lifecycle events of activities and fragments. These event's logs can be seen in Android Studio LogCat.

Features

  • Add Fragment One: Adds Fragment One to the screen.
  • Add Fragment One with Backstack: Adds Fragment One to the screen with back stack management.
  • Add Fragment Two: Adds Fragment Two to the screen.
  • Add Fragment Two with Backstack: Adds Fragment Two to the screen with back stack management.
  • Replace Fragment Three: Replaces the current fragment with Fragment Three.
  • Replace Fragment Three with Backstack: Replaces the current fragment with Fragment Three and adds it to the back stack.
  • Replace Fragment Four: Replaces the current fragment with Fragment Four.
  • Replace Fragment Four with Backstack: Replaces the current fragment with Fragment Four and adds it to the back stack.
  • Open Blank Activity: Opens a blank activity in a new window.

Usage

  1. Clone the repository to your local machine:

    git clone https://github.com/SachanKapil/ActivityFragmentLifecycleApp.git
    
  2. Open the project in Android Studio.

  3. Run the app on an emulator or physical device.

  4. Explore the app and interact with the buttons to observe the lifecycle events of activities and fragments during navigation operations.

Logcat Monitoring

To monitor the lifecycle events in Logcat with the "ActivityFragmentLifecycleApp" tag:

  1. Open Logcat in Android Studio.

  2. Enter "ActivityFragmentLifecycleApp" in the search bar or filter.

  3. Interact with the buttons in the app to trigger navigation operations and observe the corresponding lifecycle events logged with the "ActivityFragmentLifecycleApp" tag.


Screenshot 2024-06-03 at 1 50 14 AM

Screenshot_20240603_014854 Screenshot_20240603_014907 Screenshot_20240603_014917

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages