I need to update the score in one activity when an action is used in another activity.
In class 1 activity 1 – I have a score textview and this shows the score. The user then presses answer and this takes the user to another activity where they choose an answer from radio buttons.
In class 2 activity 2 – The user chooses an answer and the score in activity 1 gets updated if correct.
Is this possible?
Thanks.
if your using intents to launch you activities then you might want to look into passing the values as extra
Edit
I found a good article about extra (get and set extra)
I found a good article about extra (get and set extra)
Section 3 should be what your looking for