本文介绍了如何使用actions.xml集成应用程序动作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我正在尝试构建一个内置意图[actions.intent.CHECK_AIR_QUALITY]。我已经在我的项目中添加了actions.xml。 这是代码: <?xml版本= 1.0编码= utf-8? ><!-了解有关如何使用 App Action的更多信息:https://developer.android.com/guide/actions/index.html-> < actions> <!-示例操作-> < action intentName = actions.intent.CHECK_AIR_QUALITY> <动作显示 label =检查质量 /> < fulfillment urlTemplate = https://www.google.co.in/order{?drop}> <参数映射 intentParameter = drop urlParameter = drop /> < / fulfillment> < / action> < / actions> 在这里,我在 urlTemplate 位置放置了一个示例url。但是,在我将设备安装到设备中之后,以下选项(APP ACTION TEST TOOL)不再出现​​。这是视频 所以我要对此进行研发并且我找到了一些有关Google codelabs 的对话操作的链接。 请让我知道是否需要更多信息。解决方案在Google I / O 2019上,发布了有关App Actions的一些更新。通过安装App Actions测试工具插件可以启用您要查找的菜单项,您可以在Android Studio插件市场中通过搜索 App Actions(网络链接)。 官方文档 关于应用操作的Google I / O 2019会议(视频) 在github上的示例应用程序 I am trying to build a build-in-intent[actions.intent.CHECK_AIR_QUALITY]. I have already added the actions.xml in my project. Here is the code: <?xml version ="1.0" encoding ="utf-8"?><!-- Learn More about how to use App Actions: https://developer.android.com/guide/actions/index.html --><actions> <!--Example Action --> <action intentName="actions.intent.CHECK_AIR_QUALITY"> <action-display label="Check quality" /> <fulfillment urlTemplate="https://www.google.co.in/order{?drop}"> <parameter-mapping intentParameter="drop" urlParameter="drop" /> </fulfillment> </action></actions>Here I put a sample url in the place of urlTemplate . But after I install the app in my device the below option(APP ACTION TEST TOOL) is not coming. Here is the video link where I have taken the screen shot. So I do R&D on that and I have found some link for the conversational action of google codelabs. Please let me know if you need more information. 解决方案 At Google I/O 2019, some updates were posted about App Actions. The menu item you're looking for is enabled by installing the App Actions Test Tool plugin which you can find in the Android Studio plugin marketplace by searching for "App Actions" (web link).Official documentationGoogle I/O 2019 session on App Actions (video)Sample application on github 这篇关于如何使用actions.xml集成应用程序动作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-24 09:50