Introduction

An Activity represents a single screen with a user interface(UI). An Android App may have more than one Activity, for example, An email App can have one activity to list all the emails, another activity to show email contents, yet another activity to compose new email. All the activities in an App work together to create perfect user experience.

Syntax

Parameters

Parameter | Details | —— | —— |Intent | Can be used with startActivity to launch an Activity |Bundle | A mapping from String keys to various Parcelable values. |Context | Interface to global information about an application environment. |

Remarks

An Activity is an application component that provides a screen with which users can interact in order to do something, such as dial the phone, take a photo, send an email, or view a map. Each activity is given a window in which to draw its user interface. The window typically fills the screen, but may be smaller than the screen and float on top of other windows.