【问题标题】:How to display Voice Recognition Settings screen programmatically如何以编程方式显示语音识别设置屏幕
【发布时间】:2012-08-08 08:03:59
【问题描述】:

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

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

【问题讨论】:

    标签: android voice-recognition


    【解决方案1】:

    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");
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-06-11
      相关资源
      最近更新 更多