From the course: Android Development Essential Training: Your First App with Kotlin

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Define screens with activities

Define screens with activities - Android Tutorial

From the course: Android Development Essential Training: Your First App with Kotlin

Start my 1-month free trial

Define screens with activities

- [Instructor] In Android, an activity is generally defined as something an app can do. In apps designed for phones and tablets, activities manage screens. An activity screen might not always look the same, it might, for example, only serve as a container for smaller user interface components named fragments but on phones and tablets, each screen is always managed by an activity. This activity is named MainActivity and as with all activities, it's registered in the application manifest. When the user starts an app by tapping its launcher icon, the app framework looks for the app's launcher activity which is marked by this intent-filter. The filter has an action and a category. The action is set to MAIN and the category is set to LAUNCHER. Each application should have only one activity that's marked in this way. When you first create an application in Android Studio, regardless of which activity template you use, it'll always have a single launcher activity. When the users starts an…

Contents