Code example for Fragment

Methods: getActivityonDestroy