I'm looking for a way to call the method of a java class by pressing a button, so in the layout controlled by that class I have a button to which I put the onclick with my method, the android studio does not show any error compile the app and undo the button and close me
what will it be?