Difference Between uses-permission-sdk-23 and uses-permission?

前端 未结 6 1090
名媛妹妹
名媛妹妹 2021-02-05 05:17

I just come to know newer tag in android manifest file called \"uses-permission-sdk-23\"



        
6条回答
  •  天命终不由人
    2021-02-05 05:44

    By using the element instead of , you can request the permission only if the app is running on platforms that support the runtime permissions model, in which the user grants permissions to the app while it is running.

    This has been introduced to support runtime permission feature of Marshmallow (API-23) onwards.

    This simply specifies that an app wants a particular permission, but only if the app is running on a device with SDK version 23 or higher. If the device is running SDK version 22 or lower, the app does not have the specified permission. This element is useful when you update an app to include a new feature that requires an additional permission. If a user updates an app on a device that is running SDK version 22 or lower, the system prompts the user at install time to grant all new permissions that are declared in that update.

    You can reffer to the documentation.

提交回复
热议问题