getActivity

Provides the activity from Context (https://stackoverflow.com/a/68423182/12737399)

Return

The activity associated with the context, or null if the context is not an activity.