android - ok google, voice actions, search through app data -
every one. faced bit strange problem. goal handle ok google search query , open app query. needed queries: call buddy (opens application's activity contact info , propose make call voip) search buddy on "app name" (should open application's activity , display in list occurencies)
i'm tried these approaches: 1. i've created activity intent-filter handle
<intent-filter> <action android:name="android.intent.action.call" /> category android:name="android.intent.category.default" /> </intent-filter>
but every time try "call buddy" standart call application oppens.
i've created activity intent-filter handle using google.gms.actions approach
<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>
but still no luck. can create search query on
adb shell start -a "com.google.android.gms.actions.search_action" --es query "[query keyword]" -n "com.testapp/.mainactivity"
please, appreciated
according answer first need publish app on store before work: https://stackoverflow.com/a/26983470/811749
Comments
Post a Comment