---
title: "Discussion on \"How to create a lifecycle aware custom class in Android.\" | Hashnode"
description: "Discussion on \"How to create a lifecycle aware custom class in Android.\". We all know, each component in Android has its lifecycle, be it Activity, Fragment or Service. Each component gets created and destroys (and a few other stages in between).\nTo create a custom class that is lifecycle aware inherently, we can use a set..."
url: "https://hashnode.com/posts/how-to-create-a-lifecycle-aware-custom-class-in-android/64ddf8f7fea0e42cee6274c4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to create a lifecycle aware custom class in Android.](https://blog.tejpratapsingh.com/how-to-create-a-lifecycle-aware-custom-class-in-android?utm_source=hashnode&utm_medium=feed)

We all know, each component in Android has its lifecycle, be it Activity, Fragment or Service. Each component gets created and destroys (and a few other stages in between). To create a custom class that is lifecycle aware inherently, we can use a set...

Aug 17, 2023 · 2 min read · blog.tejpratapsingh.com  
Read the article

-   [#android](https://hashnode.com/tag/android)
-   [#android-app-development](https://hashnode.com/tag/android-app-development)

## Written by

[Tej Pratap Singh](https://hashnode.com/@tejpratap)

@tejpratap · Bangalore, IN

  
[View profile](https://hashnode.com/@tejpratap)

Developer

Code, Movies and code for movies

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
