You might want to look in the PackageManager class with which you can retrieve installed packages/applications information.
Look at http://developer.android.com/reference/android/content/pm/PackageInfo.html#activities (flag GET_ACTIVITIES). -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 27, 7:10 pm, tansaku <tans...@gmail.com> wrote: > Is there some way to check the set of available activities? I want to > check for the presence of android.speech.action.RECOGNIZE_SPEECH in > order to disable buttons that will take the user to that function on > phones that don't have the voice recognition support. > > At the moment all I can tell is that I get the following exception: > > android.content.ActivityNotFoundException: No Activity found to handle > Intent { action=android.speech.action.RECOGNIZE_SPEECH (has extras) } > > Other posts on this list seem to suggest this exception can't be > caught. Perhaps there is a base level Java way to determine if the > library is available. > > Any help greatly appreciated. > > CHEERS> SAM --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---