7

I am building an Android app and would like to integrate the ability to search using voice with Google Now Actions as described in this blog post. Before I push the app to the Play Store, is there a way to test my intent filter (com.google.android.gms.actions.SEARCH_ACTION), search expression handling, etc.? I've followed the documentation and included the intent filter as below:

<activity android:name=".SearchActivity">
  <intent-filter>
    <action android:name="com.google.android.gms.actions.SEARCH_ACTION" />
    <category android:name="android.intent.category.DEFAULT" />
  </intent-filter>
</activity>
Mihai Ionescu
  • 2,108
  • 1
  • 12
  • 15
Jarek Wilkiewicz
  • 1,124
  • 11
  • 20

1 Answers1

16

Yes, you can use adb activity manager to trigger the activity using the syntax below:

adb shell am start -a com.google.android.gms.actions.SEARCH_ACTION -e query foo <app package name here>

donkim
  • 13,119
  • 3
  • 42
  • 47
Jarek Wilkiewicz
  • 1,124
  • 11
  • 20
  • Hi Jarek! I just saw your GoogleDevelopers talk "Implementing Freemium with Google play In-app Billing API" on YouTube. I think I found some severe problems with the docs and logic-flow of the Billing API v3, but I can't get a hold of anyone at Google about this. Could I ask you to take a look at this question: http://stackoverflow.com/questions/30921789/working-around-api-purchase-logic-flaws-for-consumables-in-google-plays-billing and forward it to the right person at Google? Thank you! – Markus A. Jan 14 '16 at 00:53
  • I can not start with query constant space, for example, `-e query incorrect record`, do you have any suggestion? – cuasodayleo Dec 20 '17 at 09:38