Code example for SoftReference

Methods: get

0
				 
				mHandler.post(new Runnable() {
					@Override 
					public void run() { 
						Message msg = mHandler.obtainMessage();
						msg.obj = (Bitmap)mThumb.get();
						msg.sendToTarget();
					} 
				}); 
			} 
		} 
	} 
	 
	private boolean isImageFile(String file) {
		String ext = file.substring(file.lastIndexOf(".") + 1);
		 
		if (ext.equalsIgnoreCase("png") || ext.equalsIgnoreCase("jpg") ||
			ext.equalsIgnoreCase("jpeg")|| ext.equalsIgnoreCase("gif") ||
			ext.equalsIgnoreCase("tiff")|| ext.equalsIgnoreCase("tif"))
			return true;