How to connect OK Google voice queries to my app
问题 I want to my app to react to voice queries. I have setup "Ok Google" properly as described here. It is working fine, but it does not seem to be connected to my app. Instead of opening my app it just performs a regular search! 回答1: If you have a searchable Activity as described here then you just need to add these two lines to the <intent-filter /> tag of your Activity in your manifest: <action android:name="com.google.android.gms.actions.SEARCH_ACTION"/> <category android:name="android.intent