[android-developers] Re: "android.speech.action.RECOGNIZE_SPEECH" activity not found
Handle the exception. There is no guarantee that an Intent will get a match, and the situation can change as the user adds and deletes applications. Conceivably, matches could go away in future version of Android, or in a port of Android with very different hardware than a phone. So even if it works in many Android configurations, this is still an exception you should handle. If your application requires an Intent match to work, you should notify the user of the error and then exit your application. -- 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
[android-developers] Re: "android.speech.action.RECOGNIZE_SPEECH" activity not found
You should probably be adding some code to verify if the speech recognition library is available on the device. Generally this is a good practice for any external intent. Here is a code segment that can help you out. // Check to see if a recognition activity is present PackageManager pm = context.getPackageManager(); List activities = pm.queryIntentActivities( new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH), 0); if (activities.size() == 0) { // At this point there is no recognition library and you should handle it here } I'm not sure how you can load the library into the API and I'm not sure if the library is even publicly available. On Mar 11, 8:07 am, Moto wrote: > You might have to download the speech recognition? I know google maps > requires downloading voice app or something... > > On Feb 24, 4:34 am, Mukesh kumar wrote: > > > > > how the emulator get activity: > > "android.speech.action.RECOGNIZE_SPEECH" > > > when we use code : > > > Intent intent = new Intent("android.speech.action.RECOGNIZE_SPEECH"); > > startActivityForResult(intent, 0); > > > it throw exception: > > Exception: > > android.content.ActivitNotFoundException:No Activity Found to handle > > Intent{action=android.speech.action.RECOGNIZE_SPEECH} > > > AndroidMainfest.xml > > > > > http://schemas.android.com/apk/res/android"; > > package="com.tutorial" > > android:versionCode="1" > > android:versionName="1.0"> > > > > > > > > > > > > > > > > > > > > > > -- 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
[android-developers] Re: "android.speech.action.RECOGNIZE_SPEECH" activity not found
You might have to download the speech recognition? I know google maps requires downloading voice app or something... On Feb 24, 4:34 am, Mukesh kumar wrote: > how the emulator get activity: > "android.speech.action.RECOGNIZE_SPEECH" > > when we use code : > > Intent intent = new Intent("android.speech.action.RECOGNIZE_SPEECH"); > startActivityForResult(intent, 0); > > it throw exception: > Exception: > android.content.ActivitNotFoundException:No Activity Found to handle > Intent{action=android.speech.action.RECOGNIZE_SPEECH} > > AndroidMainfest.xml > > > http://schemas.android.com/apk/res/android"; > package="com.tutorial" > android:versionCode="1" > android:versionName="1.0"> > > > > > > > > > > > > -- 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
[android-developers] Re: "android.speech.action.RECOGNIZE_SPEECH" activity not found
how the emulator get activity: "android.speech.action.RECOGNIZE_SPEECH" when we use code : Intent intent = new Intent("android.speech.action.RECOGNIZE_SPEECH"); startActivityForResult(intent, 0); it throw exception: Exception: android.content.ActivitNotFoundException:No Activity Found to handle Intent{action=android.speech.action.RECOGNIZE_SPEECH} AndroidMainfest.xml http://schemas.android.com/apk/res/android"; package="com.tutorial" android:versionCode="1" android:versionName="1.0"> -- 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
[android-developers] Re: "android.speech.action.RECOGNIZE_SPEECH" activity not found
Hi sandeep Problem: When we run this program. then after click the button(voice Recognition) Show message box with exception what we catch Exception: android.content.ActivitNotFoundException:No Activity Found to handle Intent{action=android.speech.action.RECOGNIZE_SPEECH} Please give me solution of it. why ActivityNotFoundException( android.speech.action.RECOGNIZE_SPEECH )throws in program SpeechActivity.java package com.tutorial; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.EditText; import android.widget.Toast; public class SpeechActivtiy extends Activity { Button Voice_Rec_BTN; EditText VoiceResults_Txt; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.speech); Voice_Rec_BTN = (Button) findViewById(R.id.startvoice); Voice_Rec_BTN.setOnClickListener(new OnClickListener() { public void onClick(View v) { startVoiceRecognitionActivity(); } }); } /** * Fire an intent to start the speech recognition activity. */ private void startVoiceRecognitionActivity() { Intent intent = new Intent("android.speech.action.RECOGNIZE_SPEECH"); //intent.setAction(ACTIVITY_SERVICE); try { startActivityForResult(intent, 0); } catch (Exception e) { // TODO Auto-generated catch block Log.e(":::ERROR::", e.toString()); Toast.makeText(SpeechActivtiy.this, e.toString(), 10).show(); } Log.v(":::","444"); } @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); } } speech.xml http://schemas.android.com/apk/res/android"; > AndroidMainfest.xml http://schemas.android.com/apk/res/android"; package="com.tutorial" android:versionCode="1" android:versionName="1.0"> string.xml Hello World, SpeechToText! SpeechTutorial voice recognition Demo Speak! -- 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
[android-developers] Re: "android.speech.action.RECOGNIZE_SPEECH" activity not found
Hi Bibek How emulator get the activity ="android.speech.action.RECOGNIZE_SPEECH" because we use this activity to "speech to text" conversion in program Please help me: how this activity find in Android throw emulator. Exception: android.content.ActivitNotFoundException:No Activity Found to handle Intent{action=android.speech.action.RECOGNIZE_SPEECH} Please give me solution of it. why ActivityNotFoundException throws in program SpeechActivity.java package com.tutorial; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.EditText; import android.widget.Toast; public class SpeechActivtiy extends Activity { Button Voice_Rec_BTN; EditText VoiceResults_Txt; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.speech); Voice_Rec_BTN = (Button) findViewById(R.id.startvoice); Voice_Rec_BTN.setOnClickListener(new OnClickListener() { public void onClick(View v) { startVoiceRecognitionActivity(); } }); } /** * Fire an intent to start the speech recognition activity. */ private void startVoiceRecognitionActivity() { Intent intent = new Intent("android.speech.action.RECOGNIZE_SPEECH"); //intent.setAction(ACTIVITY_SERVICE); try { startActivityForResult(intent, 0); } catch (Exception e) { // TODO Auto-generated catch block Log.e(":::ERROR::", e.toString()); Toast.makeText(SpeechActivtiy.this, e.toString(), 10).show(); } Log.v(":::","444"); } @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); } } speech.xml http://schemas.android.com/apk/res/android"; > AndroidMainfest.xml http://schemas.android.com/apk/res/android"; package="com.tutorial" android:versionCode="1" android:versionName="1.0"> string.xml Hello World, SpeechToText! SpeechTutorial voice recognition Demo Speak! -- 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
[android-developers] Re: "android.speech.action.RECOGNIZE_SPEECH" activity not found
The emulator doesn't have this Activity. That is why you are getting this exception. On Feb 24, 11:04 am, Sandeep Phansekar wrote: > plz explain u r problem with more details > -- > Regards > Sandeep > > On Tue, Feb 23, 2010 at 8:58 PM, Mukesh kumar wrote: > > when we call > > Intent intent = new Intent("android.speech.action.RECOGNIZE_SPEECH"); > > startActivityForResult(intent, 0); > > > After that show Exception: > > > Activity not foun exception > > > Exception: > > android.content.ActivitNotFoundException:No Activity Found to handle > > Intent{action=android.speech.action.RECOGNIZE_SPEECH} > > > -- > > 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 -- 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