AlertDialog

import android.app.AlertDialog;
import android.content.DialogInterface;

        new AlertDialog.Builder (this)
        .setTitle ("Alerting Message")
        .setMessage ("你好!")
        .setPositiveButton("确定",new DialogInterface.OnClickListener() {  
            @Override
            public void onClick(DialogInterface dialog, int which) {
                //do nothing - it will close on its own
            }
         })

posted @ 2011-09-17 09:42  jetz  阅读(211)  评论(0编辑  收藏  举报