Android official documentation: (2) Application List -- 2.16 & lt; permission-group & gt; tag

Source: Internet
Author: User

Syntax:
<permission-group android:description="string resource"                  android:icon="drawable resource"                  android:label="string resource"                  android:name="string" />
Contained in:
<manifest>
Description:
Declares a name for a logical grouping of related permissions. Individualpermission join the group through permissionGroupAttribute of <permission>Element. Members of a group arepresented together in the user interface.

Note that this element does not declare a permission itself, only a category in which permissions can be placed. See<permission>Element for information on declaring permissions and assigning them to groups.

Attributes:
android:description
User-readable text that describes the group. The text shocould be longer and more explanatory than the label. This attribute must be set as a reference to a string resource. Unlike labelAttribute, it cannot be a raw string.
android:icon
An icon representing the permission. This attribute must be setas a reference to a drawable resource containing the image definition.
android:label
A user-readable name for the group. as a convenience, the label can be directly set as a raw string while you're developing the application. however, when the application is ready to be published, it shoshould be set as a reference to a string resource, so that it can be localized like other strings in the user interface.
android:name
The name of the group. This is the name that can be assigned to <permission>Element's <permissionGroup>Attribute.
Introduced in:
API Level 1
See also:
<permission>
<permission-tree>
<uses-permission>

Related Article

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.