Skip to content

Instantly share code, notes, and snippets.

@Younes-Charfaoui
Created July 29, 2019 09:36
Show Gist options
  • Save Younes-Charfaoui/d598ad53565c2190e76f8d45661b7c80 to your computer and use it in GitHub Desktop.
Save Younes-Charfaoui/d598ad53565c2190e76f8d45661b7c80 to your computer and use it in GitHub Desktop.
if (!SpeechRecognizer.isRecognitionAvailable(this)) {
Toast.makeText(
this,
R.string.no_recognition_available,
Toast.LENGTH_LONG
).show()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment