In this android application development tutorial you will learn about android activities and about its life cycle. so, lets start the tutorial :)
In android when you create a new project then you have already created one activity called main activity. Activity is nothing but the screen of your android app.
When the android app starts android system constantly calls different activities and methods. When the app starts the methods onCreate(), onStart() and onResume() is going to be are going to be called.
When your app is shutdown, the methods onPause(), onStop() and onDestroy() are going to be called and these methods are going to be needed for app crash and to minimize the system resources.
In android when you create a new project then you have already created one activity called main activity. Activity is nothing but the screen of your android app.
Actually activity is primary building blocks of an android. If we talk about any other android application like WhatsApp then list of contact is another activity, when you send message to one person then its also another activity. Here is the lifecycle of an android activity.
Lifecycle of an android activity.
When the android app starts android system constantly calls different activities and methods. When the app starts the methods onCreate(), onStart() and onResume() is going to be are going to be called.
When your app is shutdown, the methods onPause(), onStop() and onDestroy() are going to be called and these methods are going to be needed for app crash and to minimize the system resources.
No comments:
Post a Comment