android - Add Google Assistant routines from my app
问题描述
I'm trying to develop an interactive "allspeech-based" application and I have found some troubles.
I would be able to do every task of my app without the touch input, only the voice one.
So, my idea was to use Google Assitant to open my app, and then execute tasks with Activities "allspeech-based". My only problem is open my app with a custom phrase like "Hello myApp".
I've noticed that Google only permit to define in Manifest in which developer can set predefined method like SEARCH_ACTION (I have to say "Serch cats in myAPP..."), ... and not custom action!
Then I had an idea: to resolve this I can define a new routine in my Google Assistant where Command is "Hello myApp" and action is "Open myApp", and it works!
But I don't want to force my users to add a new tourine in their Assistant, I want to do it from my app automatically at the first opening of my app (throught an Intent and a startActivity or something similar idk).
My question is: How can I do? Which Intent I have to invoke? With which extras? Is it possible?
Please answer, thank you.
解决方案
没有这样的意图可以直接创建一个新的例程。
推荐阅读
- delphi - 获取TPopupMenu的调用组件
- .net - 组合框 WPF 不在行弹出项目中
- azure - 使用脚本在 Azure 分析服务防火墙中添加 IP 地址
- firebase - Firebase 模拟器没有正常关闭以保存数据
- c# - EPPLUS:如何检查所有单元格是否有效?
- email - 电子邮件模块中的消息 [“CC”] 功能在 py36 中不起作用
- android - 重定向 url 在哪里适合 ios 和 android sdk 的“使用 facebook 登录”按钮?
- android - Azure DevOps ionic Android Build 错误“Build-tool 31.0.0 is missing DX at /usr/local/lib/android/sdk/build-tools/31.0.0/dx”
- java - 如何在 ListView (AndroidStudio) 的不同项目上添加不同的样式?
- csv - 读取受保护 zip 上的 CSV 文件