I am using Antroid 2.2 and using Voice API sample application .

 setContentView(R.layout.main);
        Button speakButton = (Button) findViewById(R.id.Button01);
        mList = (ListView) findViewById(R.id.List);
        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");
         }


I am always getting "Recognizer not present" .Do I need to do special
configurations to enable this feature ?


Regards, Anil

-- 
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

Reply via email to