I have a question. And I have a TextView (number of gold) in my MainActivity. In addition, I can access a Main2Activity with a button, in which I can make a purchase. So depending on which item was purchased, the corresponding amount of gold should be deducted from the TextView.
Now I don't know how to do that, because if I re-initialize the same TextView in the second activity, my app crashes. Or, when im in the Main2Activity and press the back button on my phone, how i can recognize that, and update the new value of the TextView in the MainActivity.
Thank you for the answers