Rather simple to use:
private void startVoiceRecognitionActivity() { Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
And then call startVoiceRecognitionActivity() from your code where you need it. Of course you need to have internet access
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
in your Android.manifest.
keyboardsurfer
source share