Lessons: 8Length: 44 minutes

Next lesson playing in 5 seconds

Cancel
  • Overview
  • Transcript

2.1 Activities as App Building Blocks

Activities are one of the fundamental building blocks of Android apps. They provide a UI for the app, which lets the user interact with the app. In this lesson, you will learn what Activities are and see some examples.

2.1 Activities as App Building Blocks

In this lesson, you will be learning what are Activities, and how it is one of the fundamental building blocks of Android. When I say the building blocks of Android, it means these are the app components which are essential for the Android application. Each complement is an entry point to which the system or the user enters your application. In some way or the other, all of them are related to each other. These fundamental Building Blocks includes activities, which we are going to learn in this course. Next is the Broadcast Receiver, Services, and Content Provider. We'll just focus on the Activities. Now, let me show you some real-life example that you come that are Activities on the app which are used on daily basis. Let us first take the example of the very basic application, the calculator application, and this is the activity which we deal with. It contains values reals and which we can use to interact with the application. Talking of the next example. This is the example of the Google Play store. The activity here contains various icons and app widgets that you can use, again, to download an application or do anything that you want to. The next example is the Contacts application. This is, again, an activity that contains the list of the contacts which you have saved to your device. So this way, the Activities provides the user a UI usage, which the user interacts with their application. Now, this window typically fills the screen. But in some cases, it might be smaller than the screen or it might float above some other window. Generally, one activity implements one screen in an application. Now, once you enter into an application, how do you move to other activity? This is another important part which we will be covering in the further lesson. Just to give you an overview of it, the activities and intents are closely related. Moving from one activity to another, you'll require an intent. You will learn more about this in the upcoming lessons. That's all for this lesson. In the next lesson, you'll be learning about listening to events from activities.

Back to the top