Code example for Queue

Methods: offer

0
	mFileRoot = SDCARD_ROOT + dirName;
	mTaskListener = listener;
    } 
     
    public void post(String url) {
	mTaskQueue.offer(url);
    } 
     
    public void start() { 
	execute();
    } 
     
    public void stop() { 
	Looper.myLooper().quit();
    } 
     
    public void pause() { 
	if (mTaskHolder != null) {
	    DownloadTask task = (DownloadTask)mTaskHolder;
	    task.onCancelled();
	}