- 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. Individual
permissions join the group through the
permissionGroup
attribute of the<permission>
element. Members of a group are presented together in the user interface.This element doesn't declare a permission itself, only a category in which permissions can be placed. For information about declaring permissions and assigning them to groups, see the
<permission>
element. - attributes:
android:description
- User-readable text that describes the group. The text is
longer and more explanatory than the label. This attribute must be
set as a reference to a string resource. Unlike the
label
attribute, it can't be a raw string. android:icon
- An icon representing the permission. This attribute must be set as 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, set it 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 a
<permission>
element'sandroid:permissionGroup
attribute.
- introduced in:
- API level 1
- see also:
<permission>
<permission-tree>
<uses-permission>
<permission-group>
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# <permission-group\u003e\n\nsyntax:\n:\n\n ```xml\n \u003cpermission-group android:description=\"string resource\"\n android:icon=\"drawable resource\"\n android:label=\"string resource\"\n android:name=\"string\" /\u003e\n ```\n\ncontained in:\n: [\u003cmanifest\u003e](/guide/topics/manifest/manifest-element)\n\ndescription:\n: Declares a name for a logical grouping of related permissions. Individual\n permissions join the group through the `permissionGroup` attribute of the\n [\u003cpermission\u003e](/guide/topics/manifest/permission-element) element. Members of a group are\n presented together in the user interface.\n\n\n This element doesn't declare a permission itself, only a category in which permissions can be placed.\n For information about declaring permissions and assigning them to groups, see the\n [\u003cpermission\u003e](/guide/topics/manifest/permission-element) element.\n\nattributes:\n:\n\n `android:description`\n : User-readable text that describes the group. The text is\n longer and more explanatory than the label. This attribute must be\n set as a reference to a string resource. Unlike the `label`\n attribute, it can't be a raw string.\n\n `android:icon`\n : An icon representing the permission. This attribute must be set\n as a reference to a drawable resource containing the image definition.\n\n `android:label`\n : A user-readable name for the group. As a convenience, the label\n can be directly set as a raw string while you're developing the application.\n However, when the application is ready to be published, set it\n as a reference to a string resource, so that it can be localized like other\n strings in the user interface.\n\n `android:name`\n : The name of the group. This is the name that can be assigned to a\n [\u003cpermission\u003e](/guide/topics/manifest/permission-element)\n element's\n [android:permissionGroup](/guide/topics/manifest/permission-element#pgroup)\n attribute.\n\nintroduced in:\n: API level 1\n\nsee also:\n: [\u003cpermission\u003e](/guide/topics/manifest/permission-element)\n\n [\u003cpermission-tree\u003e](/guide/topics/manifest/permission-tree-element)\n\n [\u003cuses-permission\u003e](/guide/topics/manifest/uses-permission-element)"]]