Skip to content

Instantly share code, notes, and snippets.

@julianfalcionelli
Created May 15, 2017 00:41
Show Gist options
  • Save julianfalcionelli/1939d74ee11d0e76c30a80a6b06dd611 to your computer and use it in GitHub Desktop.
Save julianfalcionelli/1939d74ee11d0e76c30a80a6b06dd611 to your computer and use it in GitHub Desktop.
ExampleTaskLoader
public class ExampleTaskLoader extends AsyncTaskLoader<String> {
public ExampleTaskLoader(Context context) {
super(context);
onContentChanged();
}
@Override
public String loadInBackground() {
return performBlockingTask();
}
//...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment