Skip to content

This repository provides examples in Java for understanding the Android Activity Lifecycle from onStart until onDestroy.

Notifications You must be signed in to change notification settings

fare4z/AndroidActivityLifecycle

Repository files navigation

Android Activity Lifecycle

alt text for screen readers.

This repository provides examples in Java for understanding the Android Activity Lifecycle from onStart until onDestroy.

Introduction

Understanding the Android Activity Lifecycle is crucial for Android developers as it governs how activities behave throughout their lifetime. This repository aims to provide clear examples to help Politeknik Seberang Perai JTMK students grasp the concepts effectively.

Features

  • Detailed examples for each stage of the Android Activity Lifecycle.
  • Clear explanations and annotations to aid understanding.
  • Java language used for implementation.

Contents

  1. onCreate: Initializes the activity.
  2. onStart: Called when the activity becomes visible to the user.
  3. onResume: Called when the activity starts interacting with the user.
  4. onPause: Called when the activity is going into the background, but still visible.
  5. onStop: Called when the activity is no longer visible to the user.
  6. onDestroy: Called before the activity is destroyed.

Usage

  1. Clone the repository:
    git clone https://github.com/fare4z/AndroidActivityLifecycle.git
  2. Open the project in Android Studio.
  3. Navigate to the desired example to understand the corresponding lifecycle method.
  4. Run the examples on an Android emulator or device.

About

This repository provides examples in Java for understanding the Android Activity Lifecycle from onStart until onDestroy.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages