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.

  • Please provide the class code of the dialogue and the code where you use the event listener. - Mitya_Potemkin

1 answer 1

It’s hard to say anything with the code above, perhaps you didn’t create or commit your unique OnClickPlayStopListener interface.