What is different between getContext() and getActivity() from Fragment in support library?
Do they always return the same obje
@mlevytskiy Please check this Stactoverflow Answer. I hope it will helps you.
getContext() - Returns the context view only current running activity.
getActivity()- Return the Activity this fragment is currently associated with.
getActivity() can be used in a Fragment for getting the parent Activity of the Fragment .