Code example for BlockingQueue

Methods: clear

0
		Bundle b = new Bundle();
		b.putBoolean("connection", false);
		Intent i = new Intent(CONNECTION_STATUS);
		i.putExtras(b);
		sendBroadcast(i, null);
		queue.clear();
		serialBufferAvail.release();
 
		Log.d(TAG, "disconnect done");
	} 
 
	public class TinyGBinder extends Binder {
		public TinyGService getService() { 
			return TinyGService.this;
		} 
	} 
 
	@SuppressLint("DefaultLocale") 
	public static String short_jog(String axis, double step) {
		return String.format("g91g0%s%f", axis, step);
	}