-6

I want to pass string from one activity and compare that string value in 3rd 4th activity so I want to know how to pass value from one activity to another without starting that activity. I know intent way by using startActivity(intent) I don't want to start activity. Please help.

SMR
  • 6,628
  • 2
  • 35
  • 56
Kashaf Ahmed
  • 67
  • 2
  • 10

1 Answers1

1

There are multiple things you can use in this case:

  • Shared Preferences
  • static variables (not recommended)
SMR
  • 6,628
  • 2
  • 35
  • 56