![](/img/trans.png)
[英]App Action working via App Action Tool Plugin but not with voice command in Google Assistant Screen
[英]Google voice assistant command not working for action CREATE_NOTE
您好,我想通過CREATE_NOTE操作執行活動,因為我在以下代碼中做了此操作
AndroidMenifest.xml
<activity android:name=".activities.VoiceSearchActivity">
<intent-filter>
<action android:name="com.google.android.gms.actions.CREATE_NOTE"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:mimeType="text/plain"/>
</intent-filter>
</activity>
我尚未在Google Play商店中發布我的應用,因此出於測試目的,我在Android終端中使用以下代碼
adb shell am start -a com.google.android.gms.actions.CREATE_NOTE com.vocieserach.example
但是每次我都低於錯誤
Error: Activity not started, unable to resolve Intent { act=com.google.android.gms.actions.CREATE_NOTE flg=0x10000000 pkg=com.vocieserach.example }
任何人都可以幫我什么問題
我終於在終端執行以下代碼
adb shell am start -a com.google.android.gms.actions.CREATE_NOTE -t "text/plain" -e query VoiceSearch com.vocieserach.example
adb shell am start -a com.google.android.gms.actions.CREATE_NOTE -t "text/plain" -e "android.intent.extra.TEXT" "ADD BG READING 15 WITH DATE 11/05/2018 11:10:00 AM"
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.