I want to pass an object from Activity B to Activity A.
Scenario:
– Activity A calls Activity B
– User selects item in Activity B
– Activity B passes an object to Activity A
How do I accomplish this? And in which method do I read in the passed object in Activity A?
you can start your intent using
startActivityForResulton Activity A … And when finishing Activity B declare a bundle and put your serializable object to your bundle and add it to your intent. On Activity A’sonActivityResultmethod you can get this intent back and retrieve your bundle…Refer to this sample below.
http://micropilot.tistory.com/1577