How do I access variable value in another activity. In my example I have a string variable item which value is spinner selected value. How can I access this variable in ano
If you didn't want to use a global variable you could always create a method in your activity to return your string.
public static String getMyString(){ return item; }
Then in your current activity you could call:
String myValue = LoginScreen.getMyString();