From the course: Android Development Essential Training: 3 Navigation

Unlock the full course today

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

Add a new launcher activity

Add a new launcher activity - Android Tutorial

From the course: Android Development Essential Training: 3 Navigation

Start my 1-month free trial

Add a new launcher activity

- [Instructor] Android applications are typically composed of multiple streams or activities. The activity that is opened when you click on the apps and launcher icon is the launcher activity. Let's move over to Android Studio to see how it's defined. We can get this information from our application's AndroidManifest file. Let's double click to open it up. Inside of our AndroidManifest file, we have a listing of each activity. So far in our application, we only have one and it's defined starting here on line number 13. Our main activity has a special intent-filter section that defines it as our launcher activity. We'll be talking more about intents and intent-filter soon but for now, it's important to know the following. The action set to action.MAIN, this indicates that this is the main entry point to our application. While the category LAUNCHER indicates that this activity's icon should be placed in the system's…

Contents