|
Android Mobile Physical Therapy Exercise Documenter | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectandroid.os.AsyncTask<java.lang.String,java.lang.Integer,android.graphics.Bitmap>
com.communipatient.amptedapp.data.DownloadImageTask
public class DownloadImageTask
The task that loads the image with the specified URL into the provided image view using a background task.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class android.os.AsyncTask |
|---|
android.os.AsyncTask.Status |
| Field Summary | |
|---|---|
private android.widget.ImageButton |
button
The button that will be displayed. |
private android.widget.ImageView |
image
The image that will be displayed. |
| Constructor Summary | |
|---|---|
DownloadImageTask(android.widget.ImageButton button)
Initializes a new instance of the DownloadImageTask. |
|
DownloadImageTask(android.widget.ImageView image)
Initializes a new instance of the DownloadImageTask. |
|
| Method Summary | |
|---|---|
protected android.graphics.Bitmap |
doInBackground(java.lang.String... params)
The backgrounds the requested image. |
private static android.graphics.Bitmap |
GetCachedFile(android.content.Context c,
java.net.URL url)
Load the image from the file cache if possible. |
private static android.graphics.Bitmap |
GetRemoteFile(java.net.URL url)
Load the image from the remote URL. |
protected void |
onPostExecute(android.graphics.Bitmap 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 |
|---|
private android.widget.ImageView image
private android.widget.ImageButton button
| Constructor Detail |
|---|
public DownloadImageTask(android.widget.ImageView image)
image - public DownloadImageTask(android.widget.ImageButton button)
button - The image button to load the image into.| Method Detail |
|---|
protected android.graphics.Bitmap doInBackground(java.lang.String... params)
doInBackground in class android.os.AsyncTask<java.lang.String,java.lang.Integer,android.graphics.Bitmap>protected void onProgressUpdate(java.lang.Integer... progress)
onProgressUpdate in class android.os.AsyncTask<java.lang.String,java.lang.Integer,android.graphics.Bitmap>protected void onPostExecute(android.graphics.Bitmap result)
onPostExecute in class android.os.AsyncTask<java.lang.String,java.lang.Integer,android.graphics.Bitmap>
private static android.graphics.Bitmap GetCachedFile(android.content.Context c,
java.net.URL url)
c - The context which is used to get the file cache.url - The URL of the remote image.
private static android.graphics.Bitmap GetRemoteFile(java.net.URL url)
url - The remote URL.
|
Revision: 109 Generated on Sat Dec 10 07:00:03 UTC 2011 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||