- składnia:
<permission-group android:description="string resource" android:icon="drawable resource" android:label="string resource" android:name="string" />
- zawarte w:
<manifest>
- description:
- Deklaruje nazwę logicznej grupy powiązanych uprawnień. Indywidualny
uprawnień do dołączenia do grupy możesz użyć atrybutu
permissionGroup
sekcji<permission>
. Członkowie grupy są widoczne w interfejsie.Ten element nie deklaruje uprawnień, a jedynie kategorię, w której można je umieścić. Informacje o deklarowaniu uprawnień i przypisywaniu ich do grup znajdziesz w
<permission>
element. - atrybuty:
android:description
- Zrozumiały dla użytkownika tekst opisujący grupę. Tekst to
Dłuższy i bardziej objaśniający niż etykieta. Ten atrybut musi mieć wartość
ustawiony jako odwołanie do zasobu ciągu znaków. Nie podoba mi się ten kanał:
label
nie może to być nieprzetworzony ciąg znaków. android:icon
- Ikona uprawnień. Ten atrybut musi być ustawiony jako odwołanie do zasobu rysowalnego zawierającego definicję obrazu.
android:label
- Czytelna dla użytkownika nazwa grupy. Dla wygody etykieta można ustawić bezpośrednio jako nieprzetworzony ciąg znaków podczas tworzenia aplikacji. Jednak gdy aplikacja będzie gotowa do publikacji, ustaw ją jako odniesienie do zasobu w postaci ciągu, dzięki czemu można go zlokalizować ciągi tekstowe w interfejsie.
android:name
- Nazwa grupy. Tę nazwę można przypisać do
<permission>
elementuandroid:permissionGroup
.
- wprowadzone w:
- Poziom API 1
- zobacz też:
<permission>
<permission-tree>
<uses-permission>
<grupa-uprawnień>
Treść strony i umieszczone na niej fragmenty kodu podlegają licencjom opisanym w Licencji na treści. Java i OpenJDK są znakami towarowymi lub zastrzeżonymi znakami towarowymi należącymi do firmy Oracle lub jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-27 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-07-27 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)"]]