<permission-tree>

syntax:
<permission-tree android:icon="drawable resource"
                 android:label="string resource" ]
                 android:name="string" />
contained in:
<manifest>
description:
Declares the base name for a tree of permissions. The application takes ownership of all names within the tree. It can dynamically add new permissions to the tree by calling PackageManager.addPermission(). Names within the tree are separated by periods ('.'). For example, if the base name is com.example.project.taxes, permissions like the following might be added:

com.example.project.taxes.CALCULATE
com.example.project.taxes.deductions.MAKE_SOME_UP
com.example.project.taxes.deductions.EXAGGERATE

Note that this element does not declare a permission itself, only a namespace in which further permissions can be placed. See the <permission> element for information on declaring permissions.

퍼미션 트리에 대한 기본적인 이름을 선언한다. 그 애플리케이션은 트리 내의 모든 이름들에 대한 소유권을 갖는다. 그것은 PackageManager.addPermission()을 호출해서 트리에 동적으로 신규 퍼미션을 추가할 수 있다. 트리 내의 이름들은 마침표(‘.’)에 의해 분리된다. 예를 들어 만약 기본적인 이름이 com.example.project.taxes라면, 다음과 같은 퍼미션들이 추가될 수도 있다.

com.example.project.taxes.CALCULATE com.example.project.taxes.deductions.MAKE_SOME_UP com.example.project.taxes.deductions.EXAGGERATE

이 엘리먼트는 퍼미션 자체를 선언하지는 않으며, 오직 그것에 놓일 수 있는 퍼미션들의 네임스페이스만을 정의한다는 것에 주의하라. 퍼미션을 선언하는 정보에 대해서는 <permission> 엘리먼트를 보라.

attributes:
android:icon
An icon representing all the permissions in the tree. This attribute must be set as a reference to a drawable resource containing the image definition.
트리에 있는 모든 퍼미션들을 나타내는 아이콘. 이 애트리뷰트는 이미지 정의를 포함하는 드로어블drawable 리소스에 대한 레퍼런스로써 설정되어야 한다.
android:label
A user-readable name for the group. As a convenience, the label can be directly set as a raw string for quick and dirty programming. However, when the application is ready to be published, it should be set as a reference to a string resource, so that it can be localized like other strings in the user interface.
그룹에 대한 사용자가 읽을 수 있는 이름. 편의상, 라벨은 빠르고 지저분한 프로그래밍을 위해 원시 문자열로 직접적으로 설정될 수 있다. 하지만 애플리케이션이 배포될 준비가 되었을 때, 그것은 사용자 인터페이스의 다른 문자열처럼 로컬라이즈localize 될 수 있도록 문자열 리소스에 대한 레퍼런스로써 설정되어야 한다.
android:name
The name that's at the base of the permission tree. It serves as a prefix to all permission names in the tree. Java-style scoping should be used to ensure that the name is unique. The name must have more than two period-separated seqments in its path for example, com.example.base is OK, but com.example is not.
퍼미션 트리의 기본에 있는 이름. 그것은 트리에 있는 모든 퍼미션 이름들에 대한 접두어로써 사용된다. 그 이름이 고유할 수 있도록 Java 스타일 범위 지정이 사용된다. 그 이름은 그것의 경로path에 있는 두 개의 마침표로 분리된 세그먼트 이상을 가져야 한다 - 예를 들어 com.example.base는 되지만, com.example는 안된다.
introduced in:
API Level 1
see also:
<permission>
<permission-group>
<uses-permission>
↑ Go to top