What's this?
This is simply a sample code that uses Loaders and loader manager in order to run asynchronous task without suffering from activity lifecycle changes as AsyncTask does.
This sample it's used for this article in Medium.
How to Build
Just clone the repository and open the code root directory with Android Studio 3.
With the projected opened with Android Studio opened just go to Tools > Android > Sync Project with Gradle Files menu to enable Gradle for the project.
Then you can build or run the project without problems.
Any Problem?
If you face any problem with the code please fill a new issue.