Android Mobile Physical Therapy Exercise Documenter

com.communipatient.amptedapp.comm
Class DownloadMessage

java.lang.Object
  extended by android.os.AsyncTask<QRMessage,java.lang.Integer,java.lang.Integer>
      extended by com.communipatient.amptedapp.comm.DownloadMessage

public class DownloadMessage
extends android.os.AsyncTask<QRMessage,java.lang.Integer,java.lang.Integer>

The background task responsible for downloading and decrypting a message.


Nested Class Summary
 
Nested classes/interfaces inherited from class android.os.AsyncTask
android.os.AsyncTask.Status
 
Field Summary
private  android.app.Activity activity
          The calling activity.
private  android.app.ProgressDialog progress
          The progress dialog.
private static java.lang.String TAG
          The tag used for logging.
 
Constructor Summary
DownloadMessage(android.app.Activity activity, android.app.ProgressDialog progress)
          Initializes a new instance of the DownloadMessage class.
 
Method Summary
protected  java.lang.Integer doInBackground(QRMessage... params)
          The background task to download and decrypt the message contents that stores the plan in the local database.
protected  void onPostExecute(java.lang.Integer result)
          Deal with the result.
protected  void onProgressUpdate(java.lang.Integer... progress)
          Update the background tasks.
 
Methods inherited from class android.os.AsyncTask
cancel, execute, get, get, getStatus, isCancelled, onCancelled, onPreExecute, publishProgress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG

private static final java.lang.String TAG
The tag used for logging.

See Also:
Constant Field Values

activity

private android.app.Activity activity
The calling activity.


progress

private android.app.ProgressDialog progress
The progress dialog.

Constructor Detail

DownloadMessage

public DownloadMessage(android.app.Activity activity,
                       android.app.ProgressDialog progress)
Initializes a new instance of the DownloadMessage class.

Parameters:
activity - The calling activity.
progress - The progress dialog.
Method Detail

doInBackground

protected java.lang.Integer doInBackground(QRMessage... params)
The background task to download and decrypt the message contents that stores the plan in the local database.

Specified by:
doInBackground in class android.os.AsyncTask<QRMessage,java.lang.Integer,java.lang.Integer>
Parameters:
params - The QRMessage to load.

onProgressUpdate

protected void onProgressUpdate(java.lang.Integer... progress)
Update the background tasks.

Overrides:
onProgressUpdate in class android.os.AsyncTask<QRMessage,java.lang.Integer,java.lang.Integer>
Parameters:
progress - The index of the progress message to display.

onPostExecute

protected void onPostExecute(java.lang.Integer result)
Deal with the result.

Overrides:
onPostExecute in class android.os.AsyncTask<QRMessage,java.lang.Integer,java.lang.Integer>
Parameters:
result - The final result.

Revision: 109 Generated on Fri Dec 9 07:00:03 UTC 2011