Download the New LearnVern Android App and enter Lucky Draw to win Free Certificate
If you are facing any issue in playing video please use Firefox browser.
Now we will design an application in which we will see that how different methods of Android Activity Lifecycle executes.
First of all, we will open an Android studio, and choose to start a new Android project, and then we will give our application name as 'LearnVern'. After that, we will specify its package 'com.LearnVern'. After that, we click 'next' and specify the minimum level of SDK.
After that, we will click next and select 'Empty Activity'. After that, we will keep the activity name as 'MainActivity' and layout name as 'activity_main' and then click on Finish.
As soon as we click on finish, we will see our project 'LearnVern' displayed on the window. Now we will see that how we are designing the code for Android Activity Lifecycle.
After coding our code we will finally execute it, and as soon as the application run we will notice that all the three activity lifecycle are fired on the screen immediately.
Have a friend to whom you would want to share this course?