With getActivity() you will get the activity instance, cast it to your activity name and call function from fragments. Assuming activity name as MainActivity
((MainActivity)getActivity()).myFuncInActivity():
4
solved How call method from Fragment in Activity?