I would like to know is there a way to get events while displaying a System dialog (Such task manager, shut down alert,...).
I can close the system dialogs from my activity through intent like below
Intent closeDialog = new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS);
sendBroadcast(closeDialog);
But in my code I need to know a system dialog is shown over the screen (They can be Task manager/ Shut down dialog ...), so that I can invoke the above code for closing it.
I searched for intent filters nothing found.