AsyncTask.Status
Modifier and Type | Field and Description |
---|---|
(package private) WeakReference<Module> |
activity
Activity that launched the task
|
(package private) Exception |
e
Exception pointer
|
(package private) String |
progressDescription |
(package private) int |
progressTitle |
(package private) boolean |
showDialog |
SERIAL_EXECUTOR, THREAD_POOL_EXECUTOR
Constructor and Description |
---|
Module.Connect(Module activity,
boolean show,
String progressDescription,
int progressTitle)
Shows progress dialog and connects to SWAD in background
|
Modifier and Type | Method and Description |
---|---|
protected Void |
doInBackground(String... urls) |
protected void |
onPostExecute(Void unused) |
protected void |
onPreExecute() |
cancel, execute, execute, executeOnExecutor, get, get, getStatus, isCancelled, onCancelled, onCancelled, onProgressUpdate, publishProgress
WeakReference<Module> activity
Exception e
final String progressDescription
final int progressTitle
final boolean showDialog
public Module.Connect(Module activity, boolean show, String progressDescription, int progressTitle)
activity
- Reference to Module activityshow
- Flag for show a progress dialogprogressDescription
- Description to be showed in dialogprogressTitle
- Title to be showed in dialog