OneActivity -> TabLayout - > FragmentA, FragmentB, FragmentC
TwoActivity -> some clickable widgets
From FragmentA I will go to TwoActivity ang again from TwoActivity to another instance of TwoActivity and again from TwoActivity to another instance of TwoActivity and if some action happens in these TwoActivity I want to have that action value in FragmentC of OneActivity if user navigate to FragmentC.
I tried eventbus but not found solution for it. I want to know the best design pattern for this purpose.
you can use
startActivityForResultandoverridethe methodonActivityResultin theOneActivityto handle the result returned fromTwoActivityand forward the result toFragmentCin your own method. Another way you can useObserversandObservablehere