Class MAMAsyncTask

  • All Implemented Interfaces:

    
    public abstract class MAMAsyncTask<Params, Progress, Result>
    extends AsyncTask<Params, Progress, Result>
                        

    MAM wrapper around AsyncTask. Ensures that activity identity is preserved for the background operation. Specifically, the thread identity from the main thread and the UI identity from the Context provided to the constructor are transferred to the background thread at the time it begins executing. If no thread or UI identity is set, the process identity is retrieved normally as needed -- it is not locked at the time the task begins.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      MAMAsyncTask(Context context) Constructor.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      • Methods inherited from class android.os.AsyncTask

        cancel, execute, execute, executeOnExecutor, get, getStatus, isCancelled
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MAMAsyncTask

        MAMAsyncTask(Context context)

        Constructor.

        Parameters:
        context - UI context (usually activity) this operation is associated with (and will take its identity from).
    • Method Detail