How to detect and dismiss system alert dialog
<p>I have an app that shows video all the time in fullscreen mode. So I have a signle activity and SurfaceView on it. There's no access to the screen or buttons of the device, so all I have is just a monitor showing video.</p>

<p>The problem is that from time to time my mobile operator sends an adverts that open up on device as alert dialog. This dialogs are shown above my activity and I need to dismiss them somehow. Or maybe somehow forbid the system to open this type of dialogs.</p>

<p>Is it possible on android and how to do this?</p>
