应用操作带有自定义意图在不同的 Android 版本/设备上表现不同已编辑

问题描述

目前我有根据 documentation 定义的自定义意图的应用操作。

就我而言,我不使用任何参数,所以我定义了这样的模式

有了这个定义,Google Assistant 就应该明白这句话了:

嘿/好的谷歌,打开我的应用程序并开始录制/转录。

假设我要在不同的手机上安装 MyApp.APK:

  1. 当我将 MyApp.APK 安装到 Google Pixel 3(Android 11) 时,Gogogle 助手会理解命令并触发相应的操作

actions.xml


E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.altoida.ar,PID: 17559
    g.a.a.a.a.a.b: Provider com.bea.xml.stream.MXParserFactory not found
        at g.a.a.a.a.a.c.e(SourceFile:72)
        at g.a.a.a.a.a.c.c(SourceFile:176)
        at g.a.a.a.a.a.c.b(SourceFile:92)
        at g.a.a.a.a.a.i.newInstance(SourceFile:136)
        at com.fasterxml.jackson.dataformat.xml.XmlFactory.<init>(SourceFile:97)
        at com.fasterxml.jackson.dataformat.xml.XmlFactory.<init>(SourceFile:85)
        at com.fasterxml.jackson.dataformat.xml.XmlFactory.<init>(SourceFile:82)
        at com.fasterxml.jackson.dataformat.xml.XmlMapper.<init>(SourceFile:46)
        at o.a.a.a.w.c.q.e(SourceFile:144)
        at pl.kipertech.altoida.adps.tests.ar.introduction.bit.BitIntroductionFirstviewmodel.i(SourceFile:24)
        at pl.kipertech.altoida.adps.tests.ar.introduction.bit.BitIntroductionFirstFragment.S0(SourceFile:66)
        at androidx.fragment.app.Fragment.r1(SourceFile:2987)
        at d.o.b.t.f(SourceFile:546)
        at d.o.b.t.m(SourceFile:282)
        at androidx.fragment.app.FragmentManager.b0(SourceFile:2189)
        at androidx.fragment.app.FragmentManager.W0(SourceFile:2106)
        at androidx.fragment.app.FragmentManager.Y(SourceFile:2002)
        at androidx.fragment.app.FragmentManager$g.run(SourceFile:524)
        at android.os.Handler.handleCallback(Handler.java:883)
        at android.os.Handler.dispatchMessage(Handler.java:100)
        at android.os.Looper.loop(Looper.java:237)
        at android.app.ActivityThread.main(ActivityThread.java:8167)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)
  1. 当我将 MyApp.APK 安装到三星 galaxy S9 Edge(Android 版本 9/10)时,Google 助理不知道如何处理命令和打开网络搜索

知道为什么带有应用操作的自定义意图在上述情况下表现不同吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...