【问题标题】:Cannot receive search queries from Google Now无法接收来自 Google Now 的搜索查询
【发布时间】:2014-11-09 05:35:04
【问题描述】:

我正在尝试使用我的AndroidManifest.xml 中的这段代码将 Google Now SEARCH_ACTION 与我的可搜索活动联系起来:

<activity android:name=".SearchableActivity"> <intent-filter> <action android:name="com.google.android.gms.actions.SEARCH_ACTION"/> <category android:name="android.intent.category.DEFAULT"/> </intent-filter> </activity>

我正在按照http://android-developers.blogspot.com/2014/10/the-fastest-route-between-voice-search.html 和https://developer.android.com/guide/components/intents-common.html#SearchOnApp 的说明进行操作。

这只是行不通。来自 Google Now 的搜索没有启动我的应用程序。我已验证:

  1. 这适用于 Eat 24 应用,确认操作系统/Google 应用/区域设置的正确版本没有问题。
  2. 我可以从我的应用程序内部启动应用程序并接收输入的搜索查询,确认我的SearchableActivity 代码没有任何问题。

有人让这个工作吗?你能告诉我我在这里缺少什么吗?

【问题讨论】:

    标签: android google-search


    【解决方案1】:

    嗯...看起来该应用需要在 Play 商店上发布: https://plus.google.com/+AndroidDevelopers/posts/afSRdDQiy1N - 寻找 Jarek Wilkiewicz 的 cmets。接下来要试试这个。

    【讨论】:

    猜你喜欢
    • 2014-12-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-06-10
    相关资源
    最近更新 更多