title: How to dismiss all open Alert Dialogs without any references
body: <p>I have a restart option in my game. but the problem is that there may be some open alertdialog in the existing activity when I press restart. </p>
  
  <p>When I press restart I want to dismiss all open Alertdialog(if any). I do not have any reference to opened up alertdialogs(Can be o,1 or more than one).</p>
  
  <p>Is there any way I can dismiss all the opened up alertdialogs in the activity at any time without having any reference to it ?</p>