getActivity() and getContext() functions

Who can help me? Where can I find more informations about the getActivity() and getContext() functions ?

I read this, but it’s really short https://android.processing.org/reference/environment/activity.html

I read in this forum that I can do that “this.getActivity().finish();”

@InSat ===
you are in a fragment:that s why!