You can use getActivity(), which returns the activity associated with a fragment.
The activity is a context (since Activity extends Context).
You can use getActivity(), which returns the activity associated with a fragment.
The activity is a context (since Activity extends Context).