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
In this case you should use alertDialog.setOnCancelListener(listener),and alertDialog.setOnDismissListener works with dismissDialog(id).
alertDialog.setOnCancelListener(listener)
alertDialog.setOnDismissListener
dismissDialog(id)