org.android.activityminer.app.util
Class CopyFileTask

Package class diagram package CopyFileTask
java.lang.Object
  extended by android.os.AsyncTask<File,Integer,Long>
      extended by org.android.activityminer.app.util.CopyFileTask

public class CopyFileTask
extends AsyncTask<File,Integer,Long>

Asynchronous task to copy files and display progress meanwhile.


Nested Class Summary
 
Nested classes/interfaces inherited from class android.os.AsyncTask
AsyncTask.Status
 
Field Summary
private  Context context
          The context
private  ProgressDialog progressDialog
          The progress dialog.
 
Fields inherited from class android.os.AsyncTask
SERIAL_EXECUTOR, THREAD_POOL_EXECUTOR
 
Constructor Summary
CopyFileTask(Context context)
          Constructor
 
Method Summary
protected  Long doInBackground(File... params)
           
protected  void onPostExecute(Long result)
           
protected  void onPreExecute()
           
 
Methods inherited from class android.os.AsyncTask
cancel, execute, execute, executeOnExecutor, get, get, getStatus, isCancelled, onCancelled, onCancelled, onProgressUpdate, publishProgress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

progressDialog

private ProgressDialog progressDialog
The progress dialog.


context

private Context context
The context

Constructor Detail

CopyFileTask

public CopyFileTask(Context context)
Constructor

Parameters:
context - the context
Method Detail

onPreExecute

protected void onPreExecute()
Overrides:
onPreExecute in class AsyncTask<File,Integer,Long>

onPostExecute

protected final void onPostExecute(Long result)
Overrides:
onPostExecute in class AsyncTask<File,Integer,Long>

doInBackground

protected Long doInBackground(File... params)
Specified by:
doInBackground in class AsyncTask<File,Integer,Long>