Android 弹出有确认按键的对话

    //弹出对话框--------------------------------------------------
    private void openDialog(String strMsg, String strTitle){
        new AlertDialog.Builder(this)
            .setTitle(strTitle)
            .setMessage(strMsg)
            .setPositiveButton("确认",
                    new DialogInterface.OnClickListener() {
                        @Override
                        public void onClick(DialogInterface dialog, int which) {
                            // TODO Auto-generated method stub
                        }
            })
            .show();
    }

 

posted @ 2014-03-06 00:37  海乐学习  阅读(2653)  评论(0编辑  收藏  举报