1

From within an Android app, how to show the system Voice Recognition Settings screen?

Note: there is a similar question here but it is out of date.

Community
  • 1
  • 1
Mark
  • 7,446
  • 5
  • 55
  • 75

1 Answers1

5

Pre-Jelly Bean, the way to do this is using the intent:

Intent intent = new Intent(Intent.ACTION_MAIN);
intent.setClassName("com.google.android.voicesearch", "com.google.android.voicesearch.VoiceSearchPreferences");

HOWEVER: I have not had a chance to test this on Honeycomb (API 11-13) - anyone know?

Jelly Bean, you need to change the package name:

intent.setClassName("com.google.android.googlequicksearchbox", "com.google.android.voicesearch.VoiceSearchPreferences");
Mark
  • 7,446
  • 5
  • 55
  • 75