我想谷歌现在SEARCH_ACTION
使用这段代码我的搜索活动在我AndroidManifest.xml
连接:无法从谷歌获得的搜索查询现在
<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即时搜索不会启动我的应用。我已经验证:
- 这适用于Eat 24应用程序,确认OS版/ Google应用程序/区域设置的正确版本没有问题。
- 我可以从我的应用程序内部启动应用程序,并接收类型化的搜索查询,确认我的
SearchableActivity
代码没有任何问题。
任何人都已经得到这个工作?你能让我知道我在这里失踪了吗?
这是真的。您可以先使用adb测试您的应用,以下是更多信息:http://stackoverflow.com/questions/26824604/how-can-i-trigger-the-com-google-android-gms-actions-search-action-google - 现在,AC – 2014-11-13 04:42:28