I have multiple tabs and within them I have got an activity group for each. When I go from one tab to another then hit back I lose my intent data.
For example, I start activity 1, pass object 1 to activity 2 via the activitygroup I then go to activity 3 passing object 1, however when I go back to activity 2 onCreate is never called and I cannot set my intent data if I want to go back to Activity 3.
If you want to send data between activities you can use
startActivitiForResult
or you can do something like this :in Activity2 :
and if you want to send data to Activity from Activity2 you can do something like this :