builder = new AlertDialog.Builder(getActivity())
.setTitle("  ")
.setMessage("  ").
setPositiveButton("确定", new DialogInterface.OnClickListener() {

@Override
public void onClick(DialogInterface dialog, int which) {
// TODO Auto-generated method stub
}
}).
setNegativeButton("取消", new DialogInterface.OnClickListener() {

@Override
public void onClick(DialogInterface dialog, int which) {
// TODO Auto-generated method stub
builder.cancel();
}
}). create();
builder.show();