AlertDialog class에 대한 질문입니다.
아래와 같이 Alert라는 class를 만들고 호출하도록 만들었습니다.

Alert.show(this, "test", "1");
Alert.show(this, "test", "2");
Alert.show(this, "test", "3");

문제는 AlertDialog 1이 뜬 상태에서 대기하지 않고, 2, 3 계속 뜹니다.
그리고 dialog가 보이는 상태에서 화면을 보면 그 다음에 있는 code가 실행되어 있습니다.
경험있으신 분 조언바랍니다.

public class Alert
{
 static public void show (Context context, String title, String message)
 {
        // build dialog box to display when user clicks the flag
        AlertDialog.Builder builder = new AlertDialog.Builder(context);
        builder.setCancelable(false)
          .setTitle(title)
          .setMessage(message)
          .setPositiveButton("Done", new DialogInterface.OnClickListener()
          {
           public void onClick(DialogInterface dialog, int id)
           {
            dialog.dismiss();
           }
          }
          );
       final AlertDialog alert = builder.create();
       alert.show();
 }
}

위의 코드를 다르게 수정해 보아도 마찬가지입니다.