[英]Google voice assistant command not working for action CREATE_NOTE
Hello I want to execute activity by CREATE_NOTE action for that I have done below code 您好,我想通过CREATE_NOTE操作执行活动,因为我在以下代码中做了此操作
AndroidMenifest.xml 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>
I have not published my app in Google Play Store so for testing purpose I am using below code in Android's Terminal 我尚未在Google Play商店中发布我的应用,因此出于测试目的,我在Android终端中使用以下代码
adb shell am start -a com.google.android.gms.actions.CREATE_NOTE com.vocieserach.example
But every time I am getting below error 但是每次我都低于错误
Error: Activity not started, unable to resolve Intent { act=com.google.android.gms.actions.CREATE_NOTE flg=0x10000000 pkg=com.vocieserach.example }
Any body please can help me what is the issue 任何人都可以帮我什么问题
I have finally done by executing below line in terminal 我终于在终端执行以下代码
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.