How to display the voice recognition settings screen programmatically

From the Android application, how to display the voice recognition system settings screen?

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

+1
source share
1 answer

Pre-Jelly Bean, the way to do this is to use 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 the opportunity to test this on Honeycomb (API 11-13) - does anyone know?

Jelly Bean, you need to change the package name:

 intent.setClassName("com.google.android.googlequicksearchbox", "com.google.android.voicesearch.VoiceSearchPreferences"); 
+5
source

Source: https://habr.com/ru/post/1391080/


All Articles