Manifest file Properties Mess

Source: Internet
Author: User


Properties-Mess
Common attribute explanations
  • android:allowtaskreparenting whether to allow activity to replace dependent tasks, such as switching from a short message task to a browser task.
  • android:alwaysretaintaskstate Whether to keep the state unchanged, such as switching back to home, and then new open, the activity is in the final State
  • Android:cleartaskonlanunch For example, p is activity, Q is the activity that is triggered by P, and then returns to home, the new start P, whether to show Q
  • android:configchanges whether the onconfigurationchanged () method such as "Locale|navigation|orientation" is called when the configuration list changes.
  • android:enabled Activity Whether it can be instantiated
  • android:excludefromrecents Whether it can be displayed in the recently opened Activity list
  • android:exported Whether activity is allowed to be called by other programs
  • Android:finishontasklaunch whether to close open activity when the user restarts the task
  • Android.icon
  • Android:label
  • Android:launchmode activity start mode, "standard" "Singletop" "Singletask" "SingleInstance "
  • android:multiprocess allow multi-process
  • Android:name The class name of the activity must be specified
  • androidnhistory Whether you need to remove this activity when the user switches to another screen. This attribute is introduced in API Level 3.
  • Android:permission
  • android:process The name of the process where the activity is running
  • android:screenorientation activity shows the mode, "unspecified" default value "Landscape" landscape mode, the width is larger than the height of "Portrait" portrait mode, height is larger than the width. "User" users ' settings "behind" "Sensor" "Nosensor "
  • android:statenotneeded Whether the activity is destroyed and successfully restarted does not save the state
  • android:taskaffinity The activity's kinship, by default, has the same relationship as the activity under an application
  • Android:theme activity's style theme, if not set, the activity's theme style belongs to the application
  • Android:windowsoftinputmode Interactive mode of activity main window and soft keyboard, since API Level 3 was introduced

    • Android:authorities
Identifies the authorization list for the data URI within the scope of the content provider, and when there are multiple authorizations, separate each authorization with a semicolon. To avoid conflicts, the authorization name should use a Java-style naming convention (for example: Com.example.provider.cartoonprovider). Typically, this property is set with the name of the ContentProvider subclass. This property has no default value and at least one authorization is specified.
    • android:exported
This property is used to specify whether the content provider can be used by other application components. If set to true, it can be used, otherwise it cannot be used. If set to False, the provider is valid only for applications with the same name or for applications that have the same user ID. The default value is true. Although this property can be used to expose the content provider, the Permission property is still used to restrict access to it.
    • Android:granturipermission
This property is used to set the access rights that are granted to visitors who do not have access to the data provided by the content, which is temporary and overcomes the restrictions set by the readpermission, Writepermission, and permission properties. If this property is set to True, then the permission can be granted to the visitor, otherwise the visitor will not be granted access without permission. If set to true, the permission can be temporarily granted any data for the content provider. If set to False, the permission can only be granted to the subset of data listed in the <gran-uri-permission> child element. The default value is False. This authorization is a method by which the application provides a one-time access to the data protected by the permission. For example, when an e-mail contains an attachment, the mail application can invoke the appropriate browser to open the attachment, even if the browser does not have permission to view all the content provider data. In such a scenario, the permissions are granted by activating the Flag_grant_read_uri_permission and flag_grant_write_uri_permission tags in the component's intent object. For example, the mail application can place the flag_grant_read_uri_permission tag in the intent parameter passed to the Context.startactivity () method. This allows the permission to be granted the URI specified in the intent object. If you want to enable this feature, you can do this either by setting this property to true or by defining the <grant-uri-permission> child elements, and when switching Rui, The Context.revokeuripermission () method must be called to remove permissions from the provider.
    • Android:icon
This property is used to define an icon that represents the content provider. It must refer to a drawing resource that contains a picture definition. If this property is not set, then the icon attribute value of the <application> element of the application is used instead.
    • Android:initorder
This property is used to define the order in which the content provider should be instantiated, relative to other content providers owned by the same process. When there are mutual dependencies between content providers, this property needs to be set to ensure that they are created in the order in which they depend. This attribute value is a simple integer, and a large number is initialized first.
    • Android:multiprocess
This property is used to set whether an instance of a content provider can be created in each client process that uses the content provider, and if set to true, this can create an instance in each of its client processes, otherwise it cannot. The default value is False. Typically, a content provider is instantiated in the process of the application that defines it. However, if this property is set to True, the system will be able to create an instance of the content provider in each client process to interact with that content provider, thus avoiding the overhead of interprocess communication.
    • Android:permission
This property is used to set the name of the permission that the client must have to read and write data to the content provider. This property provides a convenient way to set read and write permissions at the same time. However, the readpermission and Writepermission attributes have precedence over this attribute. If the Readpermission property is also set, it controls query access to the content provider. If the Writepermission property is set, it controls modification access to the content provider data.
    • Android:process
This property is used to define the process name that the content provider should run in that process. Typically, all components of an application are run in the default process that is created for the application. It has the same name as the application package. The process property of the <application> element can set a different default process for all its components. But each component can override this default setting with its own process property, allowing the application to be separated into multiple processes. If this property value starts with ":", then when the provider is needed, the system will create a new private process for the application, and the corresponding activity will run in that private process. If you start with a lowercase letter, the activity runs in a global process named with this attribute value, which provides access to the content provider. This allows components of different applications to share this process, thereby reducing the use of system resources.
    • Android:readpermission
This property is used to set the permissions that the client must have when querying the data for the content provider.
    • Android:syncable
This property is used to set whether the data under the control of the content provider is to be synchronized with the data on the server and, if set to true, to synchronize, otherwise no synchronization is required.
    • Android:writepermission
This property is used to set the permissions that the client must have to modify the content provider's data.




From for notes (Wiz)

Inventory file Properties clutter

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.