• 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
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!
 
Back
Top Bottom