My activity opens a dialog. When it closes I need the function ReloadTable() to be executed. So I am trying to use setOnDismissListener but its not get
ReloadTable()
setOnDismissListener
public class MyActivity extends Activity implements DialogInterface.OnCancelListener{ @Override public void onCreate(Bundle state) { ..... alertDialog.setOnCancelListener(this); alertDialog.show(); } @Override public void onCancel(DialogInterface dialog) { dialog.dismiss(); ..... } }