Differences between Uses-Permission and Permissions tag in AndroidManifest.xml

前端 未结 2 1621
旧巷少年郎
旧巷少年郎 2021-01-30 06:25

What is the difference between Uses-Permission and Permissions tag in AndroidManifest.xml . I understood uses-permission

2条回答
  •  爱一瞬间的悲伤
    2021-01-30 07:00

    Quoting the documentation:

    To enforce your own permissions, you must first declare them in your AndroidManifest.xml using one or more tags. For example, an application that wants to control who can start one of its activities could declare a permission for this operation as follows:

    
    
        
    
    
    

    Hence, is when your application is seeking the user's permission to use some feature, while is when your application is requiring other apps to seek the user's permission to use some feature of yours.

提交回复
热议问题