In my app I recognize the user saying \"exit\" or \"close\" and the app should close. With this code
SpeechRecognizer sr; Map dictiona
I think problem may be at line:
sr.destroy();
If sr be null, you get NullPointerException, and
super.onDestroy();
Dont has been called. Try do next:
if(sr!=null) { sr.destroy(); }
or:
try{ sr.destroy(); } catch (Exception e) { Log.e(TAG,"Exception:"+e.toString()); }