Code example for SpeechRecognizer

Methods: cancel, destroy

0
	@Override 
	public void onDestroy() { 
		super.onDestroy(); 
		Log.i(TAG, "onDestroy");
		mNoSpeechCountDown.cancel();
		mSpeechRecognizer.cancel();
		mSpeechRecognizer.destroy();
		if (locationManager != null)
			locationManager.removeUpdates(this);
	} 
 
	@Override 
	public void onBeginningOfSpeech() { 
		Log.i(TAG, "onBeginningOfSpeech");
	} 
 
	@Override 
	public void onBufferReceived(byte[] buffer) {
		Log.i(TAG, "onBufferReceived");
	}