Code example for SoftReference

Methods: get

0
		placeholder = bmp;
	} 
 
	public Bitmap getBitmapFromCache(String url) {
			if (cache.containsKey(url)) {
				return cache.get(url).get();
			} 
		return null; 
	} 
 
	public void clearCach(){ 
		cache.clear();
		imageViews.clear();
	} 
	public void queueJob(final String url, final ImageView imageView) {
		final Handler handler = new Handler() {
			@Override 
			public void handleMessage(Message msg) {
				String tag = imageViews.get(imageView);
				if (tag != null && tag.equals(url)) {
					Bitmap bmp = (Bitmap)msg.obj;