How to enable screen overlay permission by default

后端 未结 5 494
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-18 04:38

How can I enable screen overlay permission by default while install application.

Now I facing some problem, when capture image asking run time permission some device

5条回答
  •  青春惊慌失措
    2020-12-18 05:10

    You don't have to enable the screen overlay permission instead before asking for permission, Show your Dialog box explaining the user why you need the permission and requesting them to accept the permission. if user chooses no don't show the permission dialog. else show him the permission dialog. This helps you to avoid the screen overlay permission.

提交回复
热议问题