Grammar:
<Applicationandroid:allowtaskreparenting=["true"| "false"] android:backupagent= "string"android:debuggable=["true"| "false"] android:description= "string resource"android:enabled=["true"| "false"] Android:hascode=["true"| "false"] android:hardwareaccelerated=["true"| "false"] Android:icon= "drawable resource"Android:killafterrestore=["true"| "false"] android:largeheap=["true"| "false"] Android:label= "string resource"Android:logo= "drawable resource"android:managespaceactivity= "string"Android:name= "string"android:permission= "string"android:persistent=["true"| "false"] android:process= "string"android:restoreanyversion=["true"| "false"] android:taskaffinity= "string"Android:theme= "resource or theme"android:uioptions=["None"| "Splitactionbarwhennarrow"]> . . .</Application>
Parent element:
<manifest>
Child elements:
<activity>
<activity-alias>
<service>
<receiver>
<provider>
<uses-library>
Description: the application's declaration. The attributes of this element will affect all components under the application. Many properties set a default value for the component . Some properties set global values and cannot be modified by the component.
Attribute Details:
android:allowTaskReparenting
The main function of allowtaskreparenting is the migration of activity, that is, migrating from one task to another, which is related to the taskaffinity of the activity and must be from an activity Taskaffinity a different task is migrated to the same task as it taskaffinity, this flag is used only when Rese ttask occurs, and the program we launch from home has flag_activity_reset_ Task_if_needed. So starting the program from home will perform a task reset. It will also be used in this allowtaskreparenting.
android:backupAgent
Complete application Data The actual backup and recovery tasks and actual data provided by the Backupagent object are provided by the user in the application and are used on Android under the application tag in the application's project file: The Backupagent property specifies the Backupagent object.
android:debuggable
Whether the app can use debug or even run in user mode. True can, false cannot. The default is False.
android:description
User-readable, longer and more application-specific descriptions than app tags. This value must be a reference string. Unlike tags, he cannot be set to hard-coded strings. There is no default value.
android:hasCode
Whether the app contains code. True indicates contains, false means not included. When the value is False, the startup component is any code that the system does not try to load the app. The default is true.
android:hardwareAccelerated
Whether to launch hardware acceleration for your app, starting from Android 3.0.
android:icon
The icon for the entire app, or the default icon for each component. This property value must be set to a reference to the drawable resource. There is no default value.
android:killAfterRestore
In an integer system reset operation, the application should be terminated when his settings are reset. The reset operation of a single package does not cause the app to be closed. The recovery operation of the entire system represents only
Sex occurs once when the phone is set for the first time. This property will not be used frequently by third-party apps.
The default value is true, meaning that when the entire system is restored, the application finishes running its data and terminates.
android:largeHeap
Whether the application process creates a large virtual heap storage
android:label
An easy-to-read app tag, and is also the default label for each component of the app. This tag should be set to reference string resources, and of course he can be like other strings in the user
specified in the interface. For convenience, however, an undefined string can be set when the application is developed.
android:logo
The logo of the entire application is also the activity's default logo.
android:manageSpaceActivity
The fully qualified name of an activity subclass that can be initiated by the system to allow the user to manage the storage space that the app occupies. This activity should also be declared with the <activity> element.
android:permission
The name of the license that the customer must set in order to interact with the app. This property is a convenient way to set the license for the app's components. He can be overridden by the component's Permission property.
android:persistent
Whether the app remains running at all times. True is, false is not. The default is False. Typically, the app should not set this identity. Persistent mode is only specified by several system applications.
android:restoreAnyVersion
Indicates that the application is ready to attempt to recover all of the backup data sets, even if the backup data is stored with a number higher than the currently installed application. Set to True to allow the backup manager to try
Recovery when the version does not match, meaning a data conflict. Use carefully. The default is False.
android:taskAffinity
Provides a similar name to all the components under the application, in addition to the component that sets its own Taskaffinity property. By default, all components use the same affinity. Name of the affinity
Same as the package name set in the <manifest> element.
android:theme
Define a topic that references a style resource for the component under application. Individual activities can set their own theme by setting their own theme properties.
| Value |
Description |
"none" |
Using the default theme, no additional UI components |
"splitActionBarWhenNarrow" |
Add a bar ActionBar at the bottom of the screen to display action items in the if constrained for horizontal space (such as Portrait mode on a handset). Instead of a small number of action items appearing in the action Bar at the top of the screen, the Action bar was split in To the top navigation sections and the bottom bar for action items. This ensures a reasonable amount of space are made available not only for the action items, but also for navigation and tit Le elements at the top. Menu items is not split across the bars; They always appear together. |
Androidmanifest.xml-"Manifest-Application"