The Activity Lifecycle in Android - How it works and which callback functions it has

preview_player
Показать описание
In this video, you will learn about the Activity Lifecycle in Android.

The Activity Lifecycle is basically a bunch of callback functions that are called during the lifecycle of your activity or app. So when the app starts and the activity comes into play, then onCreate is called.
Then onStart and then onResume. At this point your activity is visible and the user can interact with it.
Now let's say the user gets a call, then the Activity gets pushed into the background, at this point onPause() and onStop will be called.
If the user doesn't come back to the application, then onDestroy will be called. That's the ideal moment to make sure, that your app's data is stored for example.

tutorialsEU offers you free video tutorials about programming and development for complete beginners up to experienced programmers.
This includes C#, Unity, Python, Android, Kotlin, Machine Learning, etc.

Рекомендации по теме
Комментарии
Автор

Do you want to become an Android developer in 2022 and work from anywhere in the world? 🚀
We made a full course about Jetpack Compose - the new way to be a relevant Developer in 2022

tutorialsEU
Автор

awesome stuff, im going through two of your courses on Udemy, really impressed with the quality and im learning new things every video, thanks alot :)

dbtechprojects
Автор

Awesome video! Can you make one about Fragment lifecycle?

leonardodias
Автор

Sir nake video on android service . And a complete project on google map

arkamondal
welcome to shbcf.ru