Android-Retainable-Tasks is an easy to use open-source mini-library for Android, it makes retaining asynchronous tasks when the device rotates really simple and has support for automatic callbacks to the UI, even after a rotation change. This library is based on the Android AsyncTask implementation but with support for retaining tasks and therefore surviving configuration changes.

Key features:

  • Light weight
  • Same Task API on all Android versions, based on the Marshmallow AsyncTask implementation.
  • Simple API
  • Supports API 8+ (or 11+ if you not use the support library based classes)

For more information, usage and source-code head to the GitHub project page.