-3

Im making an app/game in android studio. And I have over 10 activities in my app/game and I have f.eks "int HP" I want to share with the others activities.

Suit Games
  • 11
  • 9

1 Answers1

1

Follwing way:

Intent intent = new Intent(Activity1.this,Activity2.class)
intent.putExtra("message", message);
startActivity(intent);

for more understanding go through this link

http://javatechig.com/android/pass-a-data-from-one-activity-to-another-in-android

nikk
  • 407
  • 3
  • 7