0

In android, I want to save data in activity A when switching to activity B and restoring that data as I switch back to it. How can I do this? Thanks in advance for any help.

user3383728
  • 75
  • 2
  • 12

1 Answers1

1

I agree with the rest, you should have all your data there, but in case it is not happening, you can always use Activity's bundle to save any data you want, and restore it (put values on the fields) when you open the activity again.

Take a look at this answer for more detail: Saving Android Activity state using Save Instance State

Community
  • 1
  • 1
FMontano
  • 907
  • 8
  • 17