Android Guides | Samples

Android.App.ApplicationAttribute Class

Generates a /manifest/application element within AndroidManifest.xml.

See Also: ApplicationAttribute


[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.All, AllowMultiple=false, Inherited=false)]
public sealed class ApplicationAttribute : Attribute


The //application element is used to declare an application. The ApplicationAttribute custom attribute is used by monodroid.exe when generating AndroidManifest.xml to to declaratively generate the //application element.

This is an assembly-level attribute.

The following usage:

C# Example

[assembly: Application (
		Label="insert label here", 

results in the following XML fragment

XML Example

<application android:debuggable="true"
    android:label="insert label here" 
    android:manageSpaceActivity="mono.samples.HelloApp" />


Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions:

The members of Android.App.ApplicationAttribute are listed below.

See Also: Attribute

Public Constructors

Constructs and initializes a new ApplicationAttribute instance.

Public Properties

AllowClearUserDataBoolean. Whether or not users are given the option to remove user ata.
AllowTaskReparentingBoolean. Whether or not activities that the application defines can move from the task that started them to the task they have an affinity for when that task is next brought to the front.
BackupAgentType. The type that implements the application's backup agent.
DebuggableBoolean. Whether or not the application can be debugged.
DescriptionString. User-readable text about the application, longer and more descriptive than the application label.
EnabledBoolean. Whether or not the Android system can instantiate components of the application.
HardwareAcceleratedBoolean. Whether or not hardware-accelerated rendering should be enabled for all Activities and Views within this application.
HasCodeBoolean. Whether or not the application contains any code.
IconString. An icon representing the application.
KillAfterRestoreBoolean. Whether the application should be terminated after its settings have been restored during a full-system restore operation.
LabelString. A user-readable label for the application.
LargeHeapBoolean. Whether or not the application should be created with a large Dalvik heap.
LogoString. The Android resource which contains the logo for the application as a hole, and for Activities which don't specify a logo.
ManageSpaceActivityType. The Activity that the system can launch to let users manage the memory occupied by the application on the device.
NameString. TODO: Not supported. The name of the class to that implements the application.
PermissionString. The name of a permission that clients must have to launch the application.
PersistentBoolean. Whether or not the application should remain running at all times.
ProcessString. The name of the process in which the application should run.
RestoreAnyVersionBoolean. Whether or not the application is prepared to attempt a restore of any backed-up data set, even if the backup was stored by a newer version of the application than is currently installed on the device.
TaskAffinityString. The task that the application has an affinity for.
ThemeString. A reference to a style resource defining an overall theme for the application.
UiOptionsUiOptions. Extra options for the application's UI.