AlertDialog.Builder builder = new AlertDialog.Builder(Alert_DialogActivity.this);
builder.setMessage("Are You Sure you want to exit");
builder.setCancelable(false);
builder.setPositiveButton("Yes", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
// TODO Auto-generated method stub
Alert_DialogActivity.this.finish();
}
});
builder.setNegativeButton("No", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
// TODO Auto-generated method stub
dialog.cancel();
}
});
builder.setNeutralButton("Jubayer", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
// TODO Auto-generated method stub
//Toast.makeText(context, text, duration);
Log.w("Jub", "Jubayer Clicked");
}
});
AlertDialog alert = builder.create();
alert.show();
builder.setMessage("Are You Sure you want to exit");
builder.setCancelable(false);
builder.setPositiveButton("Yes", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
// TODO Auto-generated method stub
Alert_DialogActivity.this.finish();
}
});
builder.setNegativeButton("No", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
// TODO Auto-generated method stub
dialog.cancel();
}
});
builder.setNeutralButton("Jubayer", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
// TODO Auto-generated method stub
//Toast.makeText(context, text, duration);
Log.w("Jub", "Jubayer Clicked");
}
});
AlertDialog alert = builder.create();
alert.show();
No comments:
Post a Comment