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

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.

Leave a Comment