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.
-
-
Field Summary
Fields Modifier and Type Field Description public final static ExecutorSERIAL_EXECUTORpublic final static ExecutorTHREAD_POOL_EXECUTOR
-
Constructor Summary
Constructors Constructor Description MAMAsyncTask(Context context)Constructor.
-