Code example for BlockingQueue

Methods: put

0
	 * @see android.text.TextWatcher#afterTextChanged(android.text.Editable) 
	 */ 
	@Override 
	public void afterTextChanged(Editable s) {
		try { 
			timerSearchRunnable.queue.put(s.toString());
		} catch (InterruptedException e) {
			Log.e(TAG, e.getMessage());
		} 
	} 
	 
	/** 
	 * @see android.text.TextWatcher#beforeTextChanged(java.lang.CharSequence, int, int, int) 
	 */ 
	@Override 
	public void beforeTextChanged(CharSequence s, int start, int count, int after) {
		// Nothing here by default. 
	} 
	 
	/** 
	 * @see android.text.TextWatcher#onTextChanged(java.lang.CharSequence, int, int, int)