i use three activity ActiviytA, ActivityB and ActivityC.from ActivityA have onActivtResult function i need result from Activityc in b/w i travel through the activityB
i use three activity ActiviytA, ActivityB and ActivityC.from ActivityA have onActivtResult function i need
Share
If I understood well, you open ActivityB from ActivityA, and then ActivityC from ActivityB. You want ActivityA to get values from ActivityC.
Probably the easiest way is to store the values as static, and read them directly from the class.
If you want to use StartActivityForResult (so you can get the results from onActivityResult), you should make ActivityB receive the results from C, and then make ActivityB pass the results to ActivityA:
ActivityA implements ResultsReciever. Then start Activity B, and retrieve the calling activity (ActivityA) with
Declare ActivityA implementing the interface:
On Activity B, at the onStart method:
Then ActivityB starts ActivityC with StartActivityForResult(). In the onActivityResult in ActivityB you can call then: