I brought a custom dialog to a separate class, I placed a button on it, now I can’t catch a click from the class of this dialog. In OnClick registered onClickPlayStop .
 public void onClickPlayStop(Dialog dialog) { //код// }; the log says that the onClickPlayStop method was not found.