final AlertDialog alertDialog = new AlertDialog.Builder(BeatWork.this).create();
alertDialog.setTitle("Save");
alertDialog.setMessage("Do you want to save...?");
alertDialog.setButton("Yes", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
insertBeatData();
actionItemCallOver.setEnabled(true);
}});
alertDialog.setButton2("No",new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
beatworkVarientChunkList.clear();
alertDialog.dismiss();
fillBeatWork();
}});
alertDialog.show();
No comments:
Post a Comment