I am trying to use AsyncTaskLoader
to load data from a server and then I will put it in a list view later on. I followed this tutorial on YouTube. However, when I try to call the loader from another class which extends fragment, the loader won't accept the context.
I tried:
getActivity()
getActivity().getApllicationContext()
Neither worked.