All Android Apps have a manifest file commonly referred to as AndroidManifest.xml. The manifest file contains everything about the Android platform that an App needs in order to run successfully.
Here, we have listed down some of the important functions of a manifest file −
It declares the minimum API level required by the application.
It declares the permissions required by the application, e.g., camera, location, etc.
It gives permissions to hardware and software features used or required by the application.
It lists the libraries that the application must be linked.
The following screenshot shows a Manifest file.
Application name − It refers to the title of your App
Package name − It is an unique name used to identify your App.
Application Icon − It is the icon displayed on the Android home screen for your App.
Version Number − It is a single number that is used to show one version of your App is more recent than another.
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" >
Version Name − It is a user-friendly version string for your App that users will see on your App settings and on the Google PlayStore. The following code shows an example of a version name.
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1.0.0">
Minimum Android Version − It is the lowest Android version platform which your application supports.
<uses-sdk android:minSdkVersion="16" />
In the above example, our minimum Android version is API Level 16, commonly referred to as JELLY BEAN.
Target Android Version − It is the Android version on which your App is compiled against.