uses-permission vs permission for android permissions in the manifest.xml file

前端 未结 4 1746
清酒与你
清酒与你 2020-12-02 14:35

I noticed that there are two types of permissions in the manifest file, \"permission\" and \"uses-permission\" like the two shown below;

 

        
4条回答
  •  生来不讨喜
    2020-12-02 14:44

    In short, the one you needed is the uses-permission statement.

    Androird Document now has a dedicated page discussing these two usages.

    In the Using Permissions part, it explains that

    
        
        ...
    
    

    is used to declare what permissions you'd like to use.

    While in Defining and Enforcing Permissions you can see that

    
        
        ...
    
    

    is used to define your own permission.

提交回复
热议问题