GoConqr has a new look! Let us know what you think.

Notes

MAPP

Shubham Gavate English 2 pages

Content of the notes (2)

Page 1

What is an Activity in Android?

-> Whenever you open an Android application, then you see some UI over your screen. That screen is called an Activity. It is the basic component of Android and whenever you are opening an application, then you are opening some activity.

For example, when you open your Gmail application, then you see your emails on your screen. Those emails are present in an Activity. If you open some particular email, then that email will be opened in some other Activity.

There is a life cycle associated with every Activity and to make an error-free Android application, you have to understand the life cycle of Activity and write the code accordingly.

Android Activity Lifecycle

An Android activity undergoes through a number of states during its whole lifecycle. The following diagram shows the whole Activity lifecycle:

Page 2

Information

Description
Note on MAPP, created by Shubham Gavate on 08/03/2020.
Created by
Shubham Gavate
Views
0
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?