the RecognizerIntent.ACTION_RECOGNIZE_SPEECH is not available on
the emulator.
*// Check to see if a recognition activity is present*
PackageManager pm = getPackageManager();
List<ResolveInfo> activities = pm.queryIntentActivities(
new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH), 0);
if (activities.size() != 0) {
speakButton.setOnClickListener(this);
} else {
speakButton.setEnabled(false);
speakButton.setText("Recognizer not present");
}
2010/12/9 Abhishek Talwar <[email protected]>
> Guys i tried the tutorial at
>
> http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/VoiceRecognition.html
> but my button is not clickable and says -> "Recognizer not present"
> I am testing this on emulator.
> Please let me know that does the emulator supports voice recognition
> through attached mike or not?
> I think this is really cool feature and i am willing to go extra mile
> with it.
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
--
Thanks,
Zhenxing Zhou
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en