code: public static ArrayList<String> getSpeechRecognitionResults(int requestCode, int resultCode, Intent data) {
  		ArrayList<String> matches = null;
  		if (requestCode == 0 && resultCode == -1) {
  			matches = data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS);
  			StringBuilder sb = new StringBuilder();
  			for (String match : matches) {
  				sb.append(match + ", ");
  			}
  		}
  		return matches;
  	}
docs: Get all results from the Google Speech Recognition activity (DO NOT FORGET call this function on
  onActivityResult())
  
  @param requestCode
  - onActivityResult request code
  @param resultCode
  - onActivityResult result code
  @param data
  - onActivityResult Intent data
  @return ArrayList<String> with all results or null if was not possible to
  get any results