Code example for SpeechRecognizer

Methods: cancelstartListening

0
			6000) { 
 
		@Override 
		public void onTick(long millisUntilFinished) { 
			//Log.d(TAG, "onTick"); 
			mSpeechRecognizer.cancel(); 
			mSpeechRecognizer.startListening(mSpeechRecognizerIntent); 
		} 
 
		@Override 
		public void onFinish() { 
			Log.d(TAG, "onFinish"); 
			mSpeechRecognizer.cancel(); 
			finish(); 
		} 
	}; 
 
	@Override 
	public void onLocationChanged(Location loc) {
		location = loc;