How do I retain an Android alertdialog sometime
<p>I have an AlertDialog in the activity I used, as: </p>

<pre><code>AlertDialog.Builder ad = new AlertDialog.Builder(this);  
ad.setTitle("Unanswered Questions");  
ad.setMessage("You have not answered all the questions.");   
ad.setPositiveButton("OK", new DialogInterface.OnClickListener() {  
   public void onClick(DialogInterface dialog, int id) {  
    dialog.wait(5000);
    dosometing();
}  
 });  
ad.show();  
</code></pre>

<p>I want  click OK, it does not disappear. I click OK,and do <code>dosometing()</code>,then it disappear. I meet question, when i click OK,the dialog disappear. I know I can use activity and theme deal with this problem. if I can use the AlertDialog,</p>

<p>Thank you.</p>
