What is an android activity ?

By

February 22, 2012AndroidNo comments

This tutorial is the part of Android Development series

1.What is Android ?
2.Hello world mobile application using android.
3.What is Android activity ?
4.Understanding Android layouts
5.Introduction to AndroidManifest file
6.Android programming using Intents

Android Activity,the basic term that every android beginner should know before starting up the development.To be simple to say an Activity in the android terminology means the individual screen that is visible on the screen.

Image credit

Say example when you click the contacts button android system  fires up the main activity for contacts application and draws the user interface for us to view.Activity relates to each unique screen,so what happens when you click a person’s contact on the contacts application? the current activity is pushed to a stack and the new activity is fired.

In android it is different that the current activity is not destroyed instead stored in a stack.When the user presses the back button the last activity at the top of the stack is loaded.This is a simple concept called Last In First out.

An android application would normally have multiple screens hence  involves multiple activities.Android application life cycle starts from creation of activity to activity shutdown.

You can see that each screen has to interact with other,so activities can able to send information to other activities.Example: an on click action can send the selected item to next activity that handles the action.

Also Read:

What is Android ?

Hello world mobile application using android.

Related posts:

Leave a Reply