What is different between getContext() and getActivity() from Fragment in support library?
getContext()
getActivity()
Fragment
Do they always return the same obje
Activity is a subclass of Context. Activity has also Window elements and access to UI methods, Context doesn't. However, in the majority of the cases, it's the same if you need only the Context.