Code example for Fragment

Methods: getActivityonCreatesetRetainInstance