Code example for Fragment

Methods: getActivitygetResources