Code example for ConcurrentLinkedQueue

Methods: offer

0
			} 
 
			intro += " from";
		} 
 
		messages.offer(new Message(intro, from, sms.getDisplayMessageBody()));
 
		return super.onStartCommand(intent, flags, startId);
	} 
 
	@SuppressWarnings("deprecation") 
	@Override 
	public void onInit(int arg0)
	{ 
		mTts.setOnUtteranceCompletedListener(this);
 
		Locale l = Locale.getDefault();
		int result = mTts.isLanguageAvailable(l);
		if (result == TextToSpeech.LANG_AVAILABLE || result == TextToSpeech.LANG_COUNTRY_AVAILABLE
				|| result == TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE)
		{