Androidmanifest. xml file (permission-group)

Source: Internet
Author: User

Syntax (syntax ):

<Permission-groupandroid: Description ="String
Resource
"
Android: icon ="Drawable
Resource
"
Android: Label ="String
Resource
"
Android: Name ="String"/>

Included in (contained in ):

<Manifest>

Description ):

Declare a logical group name for related permissions. The Independent Permission must be added to the permission group through the permissiongroup attribute of the <permission> element. The members of the same group are displayed on the user interface.

Note that this element cannot declare permissions, but it is only a classification of related permissions. For more information about declaring permissions and permission groups, see <permission>.

Attributes (attributes ):

Android: Description

This attribute defines a user-readable descriptive text for the permission group. This text should be longer and more detailed than the label. This attribute must reference a string resource, which is different from the label attribute. It cannot use a native string.

Android: icon

This attribute defines an icon that represents permissions. This attribute must be defined by a resource that contains image definitions.

Android: Label

This attribute defines a user-readable name for the permission group. For ease of development, you can directly set this attribute using native strings during development. However, when an application is officially released, you should use string resources to set it so that it can be localized just like other strings in the user interface.

Android: Name

This attribute defines the name of the permission group, which is the name of the permissiongroup attribute that can be assigned to the <permission> element.

Introduced version (introduced in ):

API Level 1

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.