Code example for LinkedBlockingQueue

Methods: isEmpty, take

0
			} 
		} 
	}     
 
	public Bitmap getNextBitmap() {
		if(bitmaps.isEmpty())
			return null; 
		try { 
			return bitmaps.take();
		} catch (InterruptedException e) {
			return null; 
		} 
	} 
 
	public String getStatus() {
		return "transfer fps: " + received * 1000
			/ (System.currentTimeMillis() - startTime) 
			+ " dropped " + dropped
			+ " received " + received;
	} 
}