Is there a way to kill all the visible dialog as an activity is destroyed?
<p>I am asking this because I am always getting the Activity has leaked window.. error</p>

<p>Couldn't figure out a way to destroy some of the dialogs on activity destroy since these dialogs
are dynamically generated outside the activity(on some listener). </p>

<p>So is there a way for android to detect and kill all the visible/live dialogs?
Thanks</p>
