The connection between fragments and fragments is carried out through the activity associated with it. Two fragments should never bind directly.
Here are some example guides
EDIT: April 2013
I like the comment by @AlexLockwood.
In the case when one fragment starts another fragment, it is fine to use setTargetFragment(Fragment, int) and directly contact it by calling getTargetFragment() . Communicating with Fragments through an activity is usually a good idea, because it keeps your fragments loosely connected to each other.
source share