Wednesday, January 1, 2020

AndroidManifest.xml

AndroidManifest.xml


AndroidManifest.xml is a special XML file. This file placed at the root of the Android App Project Structure.
 AndroidManifest.xml contains necessary information about the app like build versions, number of activities, Services, number, and type of permissions app requires and many more.
This file provides such information to Context.

AndroidManifest.xml file has the following jobs to do
  • The app package name is registered with this file, which is later converted to a universal id to identify the app universally (Known Application id).
  • With the help of this manifest file, the R.java file is created. R.java file is used to locate and identify all the resources uniquely.
  • An Android app has Activity, Services, Content Providers and Broadcast Receivers as main components. All these components need to be registered with the AndroidManifest.xml file.