There is an activity with 7 buttons. Clicking on each button will open a new activity. The question is how to correctly register the method of processing keystrokes, the method indicates a specific activity
Intent intent = new Intent(this, Activity_Two.class); There is a question - you need to write 7 methods, for each activity, or you can write one method for all 7 buttons, but you must pass an object to the method parameters - Class. If the latter is possible, please tell me the syntax. private void setButtonBehavior(Class class){}