---
title: "How to define an Activity as launcher activity in application Manifest file?"  
description: "How to define an Activity as launcher activity in application Manifest file?"  
author: "Anonymous User"  
published: 2015-06-08  
updated: 2020-09-23  
canonical: https://www.mindstick.com/interview/2614/how-to-define-an-activity-as-launcher-activity-in-application-manifest-file  
category: "android"  
tags: ["android"]  
reading_time: 1 minute  

---

# How to define an Activity as launcher activity in application Manifest file?

All the activities used in the application should be defined in application manifest file. For launcher activity you need to define intent filter as shown in the below code snippets.\

```
<activity android:name=".MyActivity"              android:label="@string/app_name">        <intent-filter>            <action android:name="android.intent.action.MAIN" />            <category android:name="android.intent.category.LAUNCHER" />        </intent-filter>    </activity>
```

## Answers

### Answer by Anonymous User

All the activities used in the application should be defined in application manifest file. For launcher activity you need to define intent filter as shown in the below code snippets.\

```
<activity android:name=".MyActivity"              android:label="@string/app_name">        <intent-filter>            <action android:name="android.intent.action.MAIN" />            <category android:name="android.intent.category.LAUNCHER" />        </intent-filter>    </activity>
```


---

Original Source: https://www.mindstick.com/interview/2614/how-to-define-an-activity-as-launcher-activity-in-application-manifest-file

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
