Activity

suggest change

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 the emails, another to show an email, and another to compose a new email. All the activities in an app work together to create the 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.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents