@Override public void onResults(Bundle bundle){
  ArrayList<String> matches=bundle.getStringArrayList(SpeechRecognizer.RESULTS_RECOGNITION);
  for (  String result : matches)   Log.i(TAG,"A FINAL RESULTS: " + result);
  etQuestion.setText(matches.get(0));
}

@ Override public void onResults ( Bundle bundle ) { ArrayList < String > matches = bundle . getStringArrayList ( SpeechRecognizer . RESULTS_RECOGNITION ) ; for ( String result : matches ) Log . i ( TAG , "A FINAL RESULTS: " + result ) ; etQuestion . setText ( matches . get ( 0 ) ) ; }
we get an array of possible sentences framed from which only the first string is considered
