DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Shoaib Ahmed
Shoaib Ahmed

Posted on

Activity and Fragment Lifecycle - Android

Activities are one of the most crucial app components in #Android #Development. They serve as the basic entry points into our app and contains our user interface.

Activities have their own life-cycle, which is a set of callbacks initiated at a particular activity state.

To know them better, I have made a repository which helps to understand the flow of these life-cycle callbacks. I have placed block comments over each callback function explaining their initiating state/condition and what sort of code should be placed in them. This also covers the life-cycle of fragments as well.

Just clone, run, perform flows and observe your callback in the logcat. Don't forget to star it is you like it.

NOTE: #Jetpack #Compose version coming soon...
LINK: https://github.com/Shobu95/Lifecycle-ActivitiesAndFragments

Top comments (0)

All DEV content is created by the community!

Hey, if you're landing here for the first time, you should know that this website is a global community of folks who blog about their experiences to help folks like you out.

Sign up now if you're curious. It's free!