Android “Screen Overlay Detected” message if user is trying to grant a permission when a notification is showing

后端 未结 13 2518
伪装坚强ぢ
伪装坚强ぢ 2020-11-27 14:56

I have Android Marshmallow on a Nexus 6. I am trying to fix the following problem:

If a user is trying to grant permission while a notification is showing, a \"Scree

13条回答
  •  粉色の甜心
    2020-11-27 15:30

    In the circumstance that I ran across, I was causing the problem myself. It was the result of using a Toast to display information to the user at the same time that I was asking for permission. Both of these actions together cause this type of error.

    The other answers might resolve someone else's issue. But I wanted to note that you should be cautious of causing your own overlays errors. Be careful of overlaying something in the view while simultaneously asking for permission.

提交回复
热议问题