Thursday, 28 August 2014

What is activity in android

What is activity in android

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.

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.

vlcsnap-2014-08-28-11h50m09s86
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. 

Never Miss a Single Android Tutorial!!!


Share This

No comments:

Post a Comment

Designed By Blogger Templates