• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps RECOGNIZE_SPEECH (asking 2 items)

egsimo

Lurker
Dec 2, 2019
1
0
1) This android site:

https://developer.android.com/reference/android/speech/RecognizerIntent#ACTION_RECOGNIZE_SPEECH

..has the references to speech recognition.

Straight to the point, why does it says "Constants", As I see (the way I know) this defines a "Method". Could some one release me from my confusion? Wich gould be the right use of "ACTION_RECOGNIZE_SPEECH"?

2) This "ACTION_RECOGNIZE_SPEECH" starts an activity, so how can I exctract it, to not to repeat code, writing it each time I need it? Shoul I use EXTRA_RESULTS_PENDINGINTENT instead?

Thanks!
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones