Unit - 2 Android Manifest File and it's usage with different features



Lesson Plan: Unit - 02
Subject: P15A2AAD - Android Application Development
Topic of Study: Android Manifest File and it's usage with different features
Grade/Level: Master of Computer Applications
Objective: To understand the parameters of Android Manifest file with its features
Time Allotment: 55 Minutes
  • Configuring Android Manifest File
    • Android projects use a special configuration file called the Android manifest file.
    • A file can store application settings.

    • A settings such as…
      • The application name and version, 
      • Permissions the application requires to run
      • Application Components
      • It is a specially formatted XML file.
      • The manifest file is named AndroidManifest.xml
  • Why Android Manifest File
    • The information in this file is used by the Android system..
    • Install and upgrade the application package.
    • Display the application details such as name, icon.
    • Specify application system requirements
    • Launch application activities.
    • Manage application permissions.
    • Configure other advanced application configuration.
    • Enable application settings such as debugging
    • Exa.
  • How to editing Android Manifest File
    • Every android project has AndroidManifest.xml file.

    • The Android manifest file is an XML file.
    • You can edit the XML manually by clicking on the AndroidManifest.xml tab.
    • Android manifest files generally include a single tag with a single tag.
    • Every application must have an AndroidManifest.xml file in its root directory.
    • Click on it and it will open following editor tabs.
    • Sample of Text Tab

    • Sample of Merged Manifest

  • Merge Multiple Manifest Files
    • Your APK file can contain just one AndroidManifest.xml file.
    • Android Studio project may contain several—provided by the main source set, build variants, and imported libraries.
    • So when building your app, the Gradle build merges all manifest files into a single manifest file that's packaged into your APK.
    • The manifest merger tool combines all XML elements from each file.
  • Merge Priorities
    • The merger tool combines all the manifest files into one file by merging them sequentially based on each manifest file's priority. 
    • For example: if you have three manifest files, the lowest priority manifest is merged into the next highest priority, and then that is merged into the highest priority manifest
    • Exa.

Thanks a lot for query or your valuable suggestions related to the topic.

Previous Post Next Post

Contact Form