Where is AndroidManifest.xml?

Every Android application should have an AndroidManifest.xml file that provides the required information about the application itself. It does several important things such as naming the package for the application, defining the components (activities, services, etc.), declaring the security permissions, and so on.

But you won’t see an AndroidManifest.xml in a Mono for Android project in Visual Studio. This is because Mono for Android tries to abstract this file from the developers by allowing them to add custom attributes to their classes, which will then be utilized during the build process in order to generate the manifest file.

Can I still have one?

The answer is yes. You can either manually create it under the Properties directory or create it through the Properties window.

In this case, the build process merges the XML file found inside the Properties directory with the manifest file that it generates based on the custom attributes. Please keep in mind that the one in the Properties directory overrides the XML elements provided by the custom attributes.

About these ads

Leave a Comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

%d bloggers like this: