Created
January 4, 2016 20:48
-
-
Save erchenger/1442dac0dd2277053b24 to your computer and use it in GitHub Desktop.
System Alert Window Permission
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!Settings.canDrawOverlays(this)) { | |
Intent intent = new Intent(Settings.ACTION_MANAGE_OVERLAY_PERMISSION, | |
Uri.parse("package:" + getPackageName())); | |
startActivityForResult(intent, REQUEST_CODE); | |
} else { | |
// You have the ability to add things to the window manually | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment