Code example for Queue

Methods: clear

0
        mQueue.add(new Group(image, url, null, cache, eventHandler));
        loadNext(); 
    } 
 
    public void clearQueue() { 
        mQueue.clear();
    } 
 
    public void clearCache() { 
    	// Only clear if it contains something. This reduces the log entries and make the 
    	// ones printed to the log actually mean something when debugging. 
    	if(mUrlToBitmap.size() > 0) {
    		Log.d(TAG, "Flushing image cache");
    		mUrlToBitmap.clear();
    	} 
    } 
 
    public void cancel() { 
        clearQueue(); 
        if (mThread != null) {
            mThread.disconnect();