Android Mobile Physical Therapy Exercise Documenter

com.communipatient.amptedapp.comm
Class UploadNote

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

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

Uploads a note to the server.


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
UploadNote(android.app.Activity activity, android.app.ProgressDialog progress)
          Initializes a new instance of the UploadNote class.
 
Method Summary
protected  java.lang.Integer doInBackground(java.lang.Integer... params)
          Uploads the plan with patient feedback to the server.
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

UploadNote

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

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

doInBackground

protected java.lang.Integer doInBackground(java.lang.Integer... params)
Uploads the plan with patient feedback to the server.

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

onProgressUpdate

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

Overrides:
onProgressUpdate in class android.os.AsyncTask<java.lang.Integer,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<java.lang.Integer,java.lang.Integer,java.lang.Integer>
Parameters:
result - The final result.

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