What is AndroidManifest

The AndroidManifest.xml file is a crucial part of any Android application. It contains essential information about the application, such as its package name, components (like activities and services), permissions required, and more. This file ensures that the Android system can properly start and manage the application.

Every Android app must have an AndroidManifest.xml file, and it serves several important purposes:

  • Defines the app's package name, which uniquely identifies the app on the device.
  • Declares components such as activities, services, and broadcast receivers.
  • Lists the permissions the app needs to function correctly.
  • Specifies the minimum API level required for the application.
  • Configures app components like intents and filters for launching activities.

Example of AndroidManifest.xml

<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.myapp"> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme"> <activity android:name=".MainActivity"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> </manifest>

AndroidManifest Android Application Android XML App Permissions Android Package Name