Reputation: 1434
Hey guys Activity A fires intent on activity B and then on back pressed of activity B the saved state of Activity A is shown.
I want to show the updated / refreshed state of activity A when back pressed on Activity B
Upvotes: 2
Views: 1377
Reputation: 4185
If you're using multiple different activities you can also use startActivityForResult() and then perform post-result processing by overriding the onActivityResult method. This also gives you the option to perform different tasks based on the result and the activity that the user was just returned from.
Upvotes: 0
Reputation: 568
You should override onResume()
method in your Activity A and update state there.
Upvotes: 3