You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Asking for permission before starting a download session with download manager brings "Screen overlay detected" screen on Samsung Devices (Tested with s6 and s7)
#18
Open
roostaamir opened this issue
Dec 15, 2016
· 1 comment
When I try to ask for "WRITE_EXTERNAL_STORAGE" before I initiate a download session using the built-in download manager, the "screen overlay detected" message shows up. Look at the code below:
If you play with the screen and deny the permission one time, and dismiss the "screen overlay detected" dialog, I can then grant the permission. Strangely if I go to settings, disable the permission, and run this method again, it will bring the permission dialog successfully this time (without showing the screen overlay detected dialog)
What is the problem?
The text was updated successfully, but these errors were encountered:
It seems that you already have an app on your phone with SYSTEM_ALERT_WINDOW permission granted and it's using a screen overlay while you're trying to request WRITE_EXTERNAL_STORAGE permission within your app. And the system does not allow it.
When I try to ask for "WRITE_EXTERNAL_STORAGE" before I initiate a download session using the built-in download manager, the "screen overlay detected" message shows up. Look at the code below:
If you play with the screen and deny the permission one time, and dismiss the "screen overlay detected" dialog, I can then grant the permission. Strangely if I go to settings, disable the permission, and run this method again, it will bring the permission dialog successfully this time (without showing the screen overlay detected dialog)
What is the problem?
The text was updated successfully, but these errors were encountered: