Code example for BlockingQueue

Methods: clear

0
		return null; 
	} 
	 
	/* "startStream", "(J)I" */ 
	public int startStream(long minTime) {
		locQueue.clear();
		locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, minTime, 0, locationListener);
		isStreaming = true;
		return 1; 
	} 
	 
	/* "stopStream", "()I" */ 
	public int stopStream() { 
		locationManager.removeUpdates(locationListener);
		isStreaming = false;
		locQueue.clear();
		return 1; 
	} 
	 
	/* "changeFrequency", "(J)I" */ 
	public int changeFrequency(long minTime) {