Voice recognition is not implemented on UK phones (both the Vodafone
Magic and the T-Mobile G1), so this could be your problem.

Quite why UK operators decided to remove this feature has caused some
consternation on many non-developer Android forums.

On Jul 6, 10:53 am, GGJames <jamesdast...@gmail.com> wrote:
> Dear all,
>
> I am trying to test the "Voice Recognition" app from ApiDemo
> on my HTC MAGIC phone.
>
> However, it shows up "Recognizer not present" then I'd traced
> the code. The problem is because of the size of "activities" is zero.
>
> Any hint?
> ----------------------------
> 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");
>         }
> ----------------------------

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to