An activity in Android is an application component that provides a screen with which users can interact in order to do something. 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.

Activities in Android form the foundation of application development. They are responsible for creating a user interface and responding to user input. Activities are like the building blocks of Android applications and they are used to define the user interface and user interactions of an application.

In summary, an activity is a fundamental building block of an Android application, and the applications that we use on our phones are all made up of one or more activities.

Topics Meaning Reference Videos Codelab to practice
Activity Lifecycle Understanding the lifecycle events that happen to an activity https://developer.android.com/guide/components/activities/activity-lifecycle

The Activity Lifecycle | | https://developer.android.com/codelabs/basic-android-kotlin-compose-activity-lifecycle?hl=en#0 | | Starting an Activity | How to start another activity from the current one | https://developer.android.com/training/basics/firstapp/starting-activity | https://youtu.be/g0ihjCAy3N8 | | | Communicating between Activities | How to pass data between activities and fragments | https://developer.android.com/training/basics/fragments/communicating | https://youtu.be/iUTv7IREYhU | | | Activity Results | How to get a result back from an activity | https://developer.android.com/training/basics/intents/result | | | | Handling Activity Configuration Changes | How to handle configuration changes, such as screen rotation | https://developer.android.com/guide/topics/resources/runtime-changes | | | | Launch Modes | Different launch modes for activities | https://developer.android.com/guide/components/activities/tasks-and-back-stack#TaskLaunchModes | | | | Task and Back Stack | How activities are managed in a task and back stack | https://developer.android.com/guide/components/activities/tasks-and-back-stack | | |

Starting a new activity in another activity in Android

Passing of data from activity to another activity in Android

The activity lifecycle  |  Android Developers

Sample code for Activity

Provide custom back navigation  |  Android Developers