Reputation: 7718
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.
Upvotes: 1
Views: 1447
Reputation: 7718
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");
Upvotes: 5