Android 如何以编程方式显示语音识别设置屏幕

Android 如何以编程方式显示语音识别设置屏幕,android,voice-recognition,Android,Voice Recognition,在Android应用程序中,如何显示系统语音识别设置屏幕 注意:有一个类似的问题,但它已过时。Pre Jelly Bean,方法是使用以下意图: Intent intent = new Intent(Intent.ACTION_MAIN); intent.setClassName("com.google.android.voicesearch", "com.google.android.voicesearch.VoiceSearchPreferences"); 然而:我还没有机会在蜂巢(API

在Android应用程序中,如何显示系统语音识别设置屏幕


注意:有一个类似的问题,但它已过时。

Pre Jelly Bean,方法是使用以下意图:

Intent intent = new Intent(Intent.ACTION_MAIN);
intent.setClassName("com.google.android.voicesearch", "com.google.android.voicesearch.VoiceSearchPreferences");
然而:我还没有机会在蜂巢(API 11-13)上进行测试-有人知道吗

Jelly Bean,您需要更改包名:

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

Pre Jelly Bean,实现这一点的方法是使用以下意图:

Intent intent = new Intent(Intent.ACTION_MAIN);
intent.setClassName("com.google.android.voicesearch", "com.google.android.voicesearch.VoiceSearchPreferences");
然而:我还没有机会在蜂巢(API 11-13)上进行测试-有人知道吗

Jelly Bean,您需要更改包名:

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