I have to dismiss this system Dialog
(Attached below). I am getting this value but I am not able to dismiss it programmatically in Service not in Activity.
My question is:
- Is it possible to dismiss it ? if yes please help or guide me how to achieve it.
Please check it
@Override
public void onWindowFocusChanged(boolean hasFocus) {
super.onWindowFocusChanged(hasFocus);
if (! hasFocus) {
Intent closeDialog = new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS);
sendBroadcast(closeDialog);
}
}
It is working in my code.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments