I am a beginner in android. I have four stages (four activities). In activity one when you click on a button you have to store value. For example counter1=3. Every stage is like stage one. I am wondering if you can tell me how can I add these integer values together and show up.
I want to add: counter1+counter2+counter3+counter4=score
How can I join these stages together?
Pass your count on using the intent extras. Below is an example of how to keep an incrementing count, but you could just pass them on from each activity and add them up at the end.
Activity 1
navigating Activity 1 – Activity2
Activity2
navigating Activity2 – Activity 3
Activity3
navigating Activity 3 – Activity 4
Activity 4