how to create an Alert Dialogu in Android without onCliclkListener
<p>I wanted to display an Alert Dialogue inside thread or alternatively such a way that AlertDialogue opens up directly after finding some records in database negative, w/o clicking on any button..
Alert dialogue may contain Few lines and 2-3 buttons..</p>

<p>referred following link and tried on my own but not getting how to create an AlertDialogue without using onClickListener as its working with it(onClickListener) very smoothly:</p>

<p><a href="http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog" rel="nofollow">http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog</a></p>

<p>Thanks in Advance.</p>
