I already have this special permission to draw over apps!
As, in my case, it is not a frequent thing, it does not bother me that much. But, I think for other specific types of applications, it might be a nuisance.
This happens a lot when I'm testing the application and I set the alarms to go off with a difference of minutes. For example, I set an alarm to go off in the next minute after the current one. If the screen starts to dim in that interval, keepalive does not come on!
In a normal my app operating situation, I don't think this will happen, but it would be interesting to know if there is a way around this, even for other types of apps.
Anyway, thanks for the reply, Erel!