---
title: "Where will you declare your activity so the system can access it?"  
description: "Where will you declare your activity so the system can access it?"  
author: "Hemant Patel"  
published: 2018-01-09  
canonical: https://answers.mindstick.com/qa/32729/where-will-you-declare-your-activity-so-the-system-can-access-it  
category: "technology"  
tags: ["android"]  
reading_time: 1 minute  

---

# Where will you declare your activity so the system can access it?

Where will you declare your [activity](https://www.mindstick.com/blog/23160/fidgetsguide-exercise-guides-newsletters) so the [system can access](https://www.mindstick.com/interview/2585/where-will-you-declare-your-activity-so-the-system-can-access-it) it?

## Answers

### Answer by Prateek sharma

You always need to declare your activity in **Android Manifest** file

```
<manifest….>
<application…>
<activity
     android:name="com.example.name.AppName"
     android:label="@string/app_name>
</activity>
</application>
</manifest>
```

Since **manifest** file contains in the root directory of your **application**, it provides various information such as minimum **Android API level**, it also describes the various **Android components** such as activities, services, broadcast receivers, and content providers. It also describes all the **permission needed** for your app to [access](https://yourviews.mindstick.com/view/81917/what-is-mobile-cloning-technology-which-gives-access-to-whatsapp-chats) various services like **internet**, **camera**, or **some hardware component**.


---

Original Source: https://answers.mindstick.com/qa/32729/where-will-you-declare-your-activity-so-the-system-can-access-it

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
