Is there any way to ask permission programmatically?

后端 未结 6 2043
名媛妹妹
名媛妹妹 2020-12-03 21:07

Is there any way to ask permission programmatically in android ? I don\'t want to add all permission to AndroidManifest.xml. So is there any dialog that asks for permission

6条回答
  •  心在旅途
    2020-12-03 21:32

    Applications statically declare the permissions they require, and the Android system prompts the user for consent at the time the application is installed. Android has no mechanism for granting permissions dynamically (at run-time) because it complicates the user experience to the detriment of security.

    • Android Developer site - System Permissions

提交回复
热议问题