I have nexus 5 android mobile. I have used this permission in my project. But it can't enable the permission in the Settings > Apps > Draw over other apps >MyApp. Permit drawing over other app is always disable. I want to programmatically enable it (showing a dialog, or without dialog), without explicitly navigating to settings and enable it by the user.
For reference AppLock
is doing without prompting to user and navigating to settings.