Permission from manifest doesn't work in Android 6 I followed this above post which I made work and bring up the intent prompt for my app to draw over others. Sadly I am finding that the switch is grayed out. After some googling
I have seen that others have pointed towards screen filter services that are the culprit, except I do not have any of those installed. Also, I have seen that other apps (i.e. Facebook Messenger
) are not grayed out and I can switch the permission
on and off with no issues.
Am I missing something in my code to cause they permission
switch to be grayed out?
EDIT: I found another post with nearly an identical issue using the same device running the same version of Android. Android "Screen Overlay Detected" message if user is trying to grant a permission when a notification is showing
tested in device Moto
and Nexus 6P
More Edit:
Also tested on Samsung Galaxy S7 Edge
and AVD
running SDK 23
with the same result