In my app I recognize the user saying \"exit\" or \"close\" and the app should close. With this code
SpeechRecognizer sr; Map dictiona
My solution for Dialog:
public void dismiss(){ speech.stopListening(); try{ speech.destroy(); } catch (Exception e) { Log.e(TAG,"Exception:" + e.toString()); } super.dismiss(); }