I am making an informational app for Android, and I cannot figure out how to change a button depending on which button was pressed in the previous class.
I took this photo which shows how the application works:

After pressing the first button, you get into a new class with two new buttons that send you to the same class, but 3 buttons should change depending on which of the two buttons you pressed, the three buttons that you get sent to send you one and the same class, but there is a TextView that changes the text depending on which button you clicked.
So, I need to add some information to the button (intention?) So that it finds out that you clicked earlier.
I'm new to Java and Android, so I'm sorry if I explain it in a weird way.
Thanks in advance
source
share