Code example for Fragment

Methods: getActivitygetChildFragmentManager