Ive asked a similar question before and didn\'t get an answer and seems many other ppl are searching for an answer. So I am posting this question to hopefully get a clear an
Many ways :
1) Activity -> Fragment
2) Activity -> Fragment
In your Fragment : create a public method
In your Activity : call an active fragment public method :
getSupportFragmentManager().findFragmentById(R.id.your_fragment).publicMethod(args)
3) Fragment -> Activity
4) Fragment -> Activity
In your Fragment : called public activity getter, setter or other methods using :
getActivity().getSomething(), getActivity().setSomething(args) or getActivity().someMethod(args)