- 语法:
<permission-tree android:icon="drawable resource" android:label="string resource" ] android:name="string" />
- 包含于:
<manifest>
- 说明:
- 声明权限树的基名。应用拥有树中所有名称的所有权。它可以通过调用
动态地向树中添加新权限。树中的名称由句点(“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>
元素。 - 属性:
- 引入于:
- API 级别 1
- 另请参阅:
<permission>
<permission-group>
<uses-permission>
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 2022-02-18 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]