@Override protected void onActivityResult(int requestCode,int resultCode,Intent data){
  super.onActivityResult(requestCode,resultCode,data);
  if (BuildConfig.DEBUG)   Log.v("onActivityResult");
  if (requestCode == VOICE_RECOGNITION_REQUEST_CODE && resultCode == RESULT_OK) {
    ArrayList<String> matches=data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS);
    if (BuildConfig.DEBUG)     Log.v("Voice recog text: " + matches.get(0));
    quickReply(matches.get(0));
  }
}

@ Override protected void onActivityResult ( int requestCode , int resultCode , Intent data ) { super . onActivityResult ( requestCode , resultCode , data ) ; if ( BuildConfig . DEBUG ) Log . v ( "onActivityResult" ) ; if ( requestCode == VOICE_RECOGNITION_REQUEST_CODE && resultCode == RESULT_OK ) { ArrayList < String > matches = data . getStringArrayListExtra ( RecognizerIntent . EXTRA_RESULTS ) ; if ( BuildConfig . DEBUG ) Log . v ( "Voice recog text: " + matches . get ( 0 ) ) ; quickReply ( matches . get ( 0 ) ) ; } }
handle the results from the recognition activity .
