//弹出对话框-------------------------------------------------- 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(); }
Android 弹出有确认按键的对话,布布扣,bubuko.com
原文:http://www.cnblogs.com/hailexuexi/p/3583684.html