[android-developers] Re: Preventing dialog auto-dismiss on button click

2013-10-15 Thread MobileDataSys
> > Mark Carter, > Thank you for the workaround, this was driving me nuts. I just did one thing slightly different. Since the DialogInterface.OnClickListener does not get used I just set it to null like this: dialog.setButton(ProgressDialog.BUTTON_NEGATIVE, getString(R.string.cancel), (DialogI

[android-developers] Re: Preventing dialog auto-dismiss on button click

2010-03-22 Thread westmeadboy
Here's a workaround: dialog.setButton(ProgressDialog.BUTTON_NEGATIVE, getString(R.string.cancel), new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { } }); dialog.show(); final Button cancelButton = dialog.getButton(Dia