Http://blog.csdn.net/fireofstar/article/details/7578766
Syntax (syntax ):
<Permission-treeandroid: icon ="Drawable
Resource"
Android: Label ="String
Resource"]
Android: Name ="String"/>
Included in (contained in ):
<Manifest>
Description ):
This element is used to declare the root node name of the permission tree. The application holds the permissions corresponding to all the permission names defined in the tree. By calling the packagemanager. addpermission () method, you can dynamically add new permissions. The names in the tree are separated. For example, if the name of the heel node is com. example. Project. Taxes, you can use the following format to add permissions:
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 permissions. It is just a namespace with more permissions. For more information about permission declaration, see the <permission> element.
Attributes (attributes ):
Android: icon
This attribute defines an icon that represents all permissions in the tree. This attribute must be set by referencing a customizable resource that contains image definitions.
Android: Label
Define a user-readable name for the permission tree. To facilitate application development, you can directly use the native string to set this attribute. However, when an application is officially released, you should reference a string resource to set this attribute, so that it can be localized like other properties in the user interface.
Android: Name
This attribute defines the name of the permission tree root node. It is used as the prefix of all permission names in the tree. Java Naming rules should be used to ensure the uniqueness of names. There must be more than two "." To separate the names. For example, Com. example. Base is correct, but com. example is incorrect.
Introduced version (introduced in)
API Level 1