Code example for ConcurrentHashMap

Methods: clear

0
	 * for memory efficiency reasons, the cache will automatically be cleared 
	 * after a certain inactivity delay. 
	 */ 
	public void clearCache() { 
		sHardBitmapCache.clear();
		sSoftBitmapCache.clear();
	} 
 
	private void resetPurgeTimer() { 
		purgeHandler.removeCallbacks(purger);
		purgeHandler.postDelayed(purger, DELAY_BEFORE_PURGE);
	} 
 
	/** 
	 * Returns true if the current download has been canceled or if there was no 
	 * download in progress on this image view. Returns false if the download in 
	 * progress deals with the same url. The download is not stopped in that 
	 * case. 
	 */ 
	private static boolean cancelPotentialDownload(String url,
			ImageView imageView) {