Android Application Manifest File (AndroidManifest.xml)

From RAD Studio
Jump to: navigation, search

Go Up to File Types Index

When you build a project for the Android target platform, RAD Studio generates an Android application manifest file. This file is necessary to generate the bundle of your application.

Android application manifest files provide information about your application. Its content is generated from the information in the following pages of your project configuration:

When you build your project, your Android application manifest file is generated by default as AndroidManifest.xml into the following folder:

  • In packages:
    Note: You do not need an Android application manifest file for packages.
    • For Delphi: C:\Users\Public\Documents\Embarcadero\Studio\22.0\Bpl\<platform>
    • For C++:
      • C:\Users\Public\Documents\Embarcadero\Studio\22.0\Bpl\<platform>\<build configuration>
      • C:\Users\Public\Documents\Embarcadero\Studio\22.0\DCP\<platform>\<build configuration>
  • In other projects: C:\Users\<user>\Documents\Embarcadero\Studio\Projects\<project>\<platform>\<build configuration>

To change the output directory:

Ensuring that the AndroidManifest.template.xml file is up to date

If you have an existing FireMonkey application project for the Android platform from a previous RAD Studio version, you need to delete the AndroidManifest.template.xml file from your project's root directory.

Before launching RAD Studio, follow the steps below to ensure that the AndroidManifest.template.xml file is setting a value for the exported attribute in the declaration of the FMXNativeActivity activity:

  • Navigate to the %AppData%\Embarcadero\BDS\22.0 directory.
  • Delete the AndroidManifest.xml file.
  • Navigate to the root directory of your application.
  • Delete the AndroidManifest.template.xml file.
  • The next time you launch RAD Studio and build your FireMonkey application, an updated version of the AndroidManifest.template.xml file will be automatically generated.
Note: If you have manually changed the previous version of the AndroidManifest.template.xml file, make sure to add the manual changes back to its update version, as applicable.

See Also