简体   繁体   English

Google语音助手命令无法执行操作CREATE_NOTE

[英]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.

相关问题 App Action 通过 App Action Tool Plugin 工作,但不能在 Google Assistant 屏幕中使用语音命令 - App Action working via App Action Tool Plugin but not with voice command in Google Assistant Screen 谷歌助手语音交互打开命令 - Google Assistant Voice Interaction Open Command 在我的应用中实施/集成Google语音操作/ Google助手 - Implemanting / Integrating google voice action / google assistant in my app 如何使用记笔记语音操作创建Android Wear应用程序? - How to create an Android Wear app with the note-taking voice action? 通过语音命令(例如Google助手)启动android应用 - Lanch android app from voice command like google assistant Android应用程序中的Google Assistant命令触发操作 - Google Assistant command triggering action in Android application adb命令设置语音助手 - adb command to set voice assistant 使用 Google Assistant 添加语音控制 - Adding voice control with Google Assistant 从我的应用程序向 Google 助理发送语音或文本命令(Hey Google) - Send Voice or Text Command From My App To Google Assistant (Hey Google) 如何使用android通过语音命令(谷歌助手)在我的android应用程序中打开指定的活动 - How to open a specified activity inside my android application through voice command( google assistant) using android
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM