1

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

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

4

1 回答 1

5

Pre-Jelly Bean,这样做的方法是使用意图:

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

然而:我没有机会在 Honeycomb (API 11-13) 上测试这个 - 有人知道吗?

Jelly Bean,需要改一下包名:

intent.setClassName("com.google.android.googlequicksearchbox", "com.google.android.voicesearch.VoiceSearchPreferences");
于 2012-08-08T08:03:59.417 回答