Skip to content

Instantly share code, notes, and snippets.

@Younes-Charfaoui
Created July 29, 2019 14:12
Show Gist options
  • Save Younes-Charfaoui/551d450fb50b341f99cb0ba94746eb4d to your computer and use it in GitHub Desktop.
Save Younes-Charfaoui/551d450fb50b341f99cb0ba94746eb4d to your computer and use it in GitHub Desktop.
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
super.onActivityResult(requestCode, resultCode, data)
if (requestCode == REQUEST_SPEECH_RECOGNIZER && resultCode == Activity.RESULT_OK) {
val results = data?.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS)
Log.d("TAG-R", results?.toString())
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment