for my app I made a framework for all network calls to an external API. I put everything in \"Services\" like: UserService
, MessageService
etc. So
If you dont prefer third party libraries and prefer library with simplicity and good documentation and support, Loaders is the best choice.
For our delight, AsyncTaskLoader(subclass of Loaders) performs the same function as the AsyncTask, but better and also can handle Activity configuration changes more easily.And best thing is it behaves within the life cycles of Fragments and Activities.
For more information and subclasses please check this documentation.