Description of application labels in Android

Source: Internet
Author: User
<application>    <application android:allowClearUserData=["true" | "false"]             android:allowTaskReparenting=["true" | "false"]             android:backupAgent="string"             android:debuggable=["true" | "false"]             android:description="string resource"             android:enabled=["true" | "false"]             android:hasCode=["true" | "false"]             android:icon="drawable resource"             android:killAfterRestore=["true" | "false"]             android:label="string 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" >        . . .    </application>

Included in: <manifest>
It can include:

<Activity>

<Activity-alias>

<Service>

<Cycler>

<Provider>

<Uses-library>

Description:

Application declaration. This element contains child elements. These child elements declare the application components, and the attributes of the elements will affect all components under the application. Many attributes set the default value for the component

Value. Some attributes are set with global values and cannot be modified by components.

Attribute:

1. Android: allowclearuserdata

Whether to grant the user the permission to delete user data. If it is true, the application Administrator has the permission to clear data; false does not. The default value is true.

2. Android: allowtaskreparenting

Whether the activities defined by the application can be transferred from a started task to a task that is the same as the one that will be taken to the foreground. True: they can be transferred. If it is false,

They must be kept together with the tasks that start them. The default value is false.

3. Android: backupagent

Class Name that implements the backup proxy of the application, a subclass of backupagent. The name of this attribute is a fully qualified class name (for example, "com. example. Project. mybackupagent ").

However, if the first letter of a name is set to a vertex, it can also be a class name (for example ,". mybackupagent "), which is appended to the package name defined in the <manifest> element.

No default value.

4. Android: debuggable

Whether the application can use DEBUG or even run in user mode. True: Yes. False: No. The default value is false.

5. Android: Description

Users can read more application descriptions than application labels. This value must be a reference string. Unlike tags, they cannot be set as hard-coded strings. No default value.

6. Android: Enabled

Whether the Android system can instantiate the application components. True: Yes. False: No. If it is true, the enabled attribute of each component determines this component.

Available or not. If it is set to false, it overwrites the specified value of the component. All components will not be used again. The default value is true.

7. Android: hascode

Whether the application contains code. True indicates include, false indicates not include. When the value is false, the system does not try to load any code of the application when the component is started. The default value is true.

8. Android: icon

The icon of the entire application, or the default icon of each component. This attribute value must be set as a reference to the drawable resource. No default value.

9. Android: killafterrestore

In the integer system reset operation, whether the application should be terminated after its settings are reset. Resetting a single package does not cause the application to be closed. Recovery operations for the entire system only represent

When the phone number is set for the first time. This attribute is not frequently used by third-party applications.

The default value is true, meaning that when the entire system is recovered, the application stops playing with its data.

10. Android: Label

A readable application tag is also the default tag for each component of the application. This label should be set to reference string resources. Of course, it can also

Interface. For convenience, undefined strings can be set during application development.

11. Android: managespaceactivity

The fully qualified name of an activity subclass. This activity can be started by the system to allow users to manage the storage space occupied by this application. This activity should also be declared using the <activity> element.

12. Android: Name

The fully qualified name of the application subclass implemented by this application. When the application starts, this class will be instantiated before other components of the application.

This subclass is optional; not required by most applications. Android uses instances of the basic application class.

13. Android: Permission

The name of the license that the customer must set to interact with the application. This property is a convenient way to set a license for the application's components. It can be overwritten by the permission attribute of the component.

14. Android: Persistent

Whether the application is running for all times. True is, false is not. The default value is false. Generally, the application should not set this identifier. The persistent mode is only specified by several system applications.

15. Android: Process

Set a running process name for the component under the application. Each component can define its own process name by setting its own process attribute.

By default, Android creates a process for the application. When the first component of the application needs to run. All components run in the same process. The process name and

The Backage attribute name set by the element is the same.

By setting this attribute, you can share it with other applications. You can coordinate application components to run in the same process, but only two applications share the user ID and sign the same certificate.

If the name of this attribute starts with a colon (":"), a new private process will be created. If a process name starts with a lowercase letter, a common process is created.

A public process can be shared by other applications to reduce resource usage.

16. Android: restoreanyversion

This indicates that the application is preparing to restore all the backup data sets, or even if the backup data is stored by a number higher than that of the currently installed application. Setting true will allow the backup manager to try

When the version does not match, the data conflict occurs. Use it with caution. The default value is false.

17. Android: taskaffinity

Provide the same name for all components under the application, except for the component with its own taskaffinity attribute. By default, all components use the same affinity. Affinity name

The package name is the same as that set in the <manifest> element.

18. Android: Theme

Define a topic for the component under the application to reference the custom style resource. You can set your own theme attributes for individual activities.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.