Code example for LinkedBlockingQueue

Methods: put

0
	@Override 
	public void onNmeaReceived(long timestamp, String nmea) {
		//Log.i(TAG, nmea); 
		 
		try { 
			mNmeaQueue.put(nmea);
		} catch (InterruptedException e) {
			e.printStackTrace();
		} 
	} 
	 
	@Override 
	public void onLocationChanged(Location location) {
		Time t = new Time(Time.TIMEZONE_UTC);
		t.set(location.getTime());
		mTimeTxt.setText(t.format("%m/%d/%Y %H:%M:%S"));
		mLatitudeTxt.setText(Location.convert(location.getLatitude(), Location.FORMAT_MINUTES));
		mLongitudeTxt.setText(Location.convert(location.getLongitude(), Location.FORMAT_MINUTES));
		mHeadingTxt.setText("---");
		 
		if (location.hasAltitude()) {