Sorry if this question has already been answered in a different thread but I can't find a solution on this site that suits my problem.
I am making an Android app and in one class, "Menu.java", I have a 'int' value which starts off being defined as 1 but gets changed during the actions of the class as it is actually a user input and ends up as a certain value and ceases to change. This class, "Menu.java", is then put into the background and a new class, "NumScreen.java", is started. In "NumScreen.java" the final value of the 'int' in "Menu.java" is needed in a number of different processes as a constant value.
My question is: How do I get that last value of the 'int' from "Menu.java" to "NumScreen.java" so I can use it in the processes that follow in "NumScreen.java"?
Thanks in advance