Code example for SpeechRecognizer

Methods: canceldestroy

0
	@Override 
	protected void onDestroy() 
	{ 
		super.onDestroy(); 
 
		sr.cancel();
		sr.destroy();
	} 
 
	@Override 
	public boolean onCreateOptionsMenu(Menu menu)
	{ 
		getMenuInflater().inflate(R.menu.activity_input, menu);
		return true; 
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE