gpt4 book ai didi

android "SELF_NOTE" Intent 与 Cordova 应用程序

转载 作者:行者123 更新时间:2023-11-29 01:27:17 25 4
gpt4 key购买 nike

我正在尝试将“SELF_NOTE” Intent 添加到我的 cordova 应用程序中,但它现在没有出现在谷歌的“记笔记”应用程序列表中。我不想对 Android Wear 做任何事情,我只是希望我的应用现在显示在 Google 的“记笔记”应用列表中。

enter image description here

我试图从这个答案中添加 Intent 过滤器: How to create an Android Wear app with the note-taking voice action? , 到我的 list ,但该应用程序未显示在“做笔记”或“ self 笔记”的应用程序列表中。

我的应用确实出现在“分享”菜单中,例如来自 chrome。

enter image description here

我的 list :

<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/activity_name" android:launchMode="singleTop" android:name="MainActivity" android:screenOrientation="portrait" android:theme="@android:style/Theme.Black.NoTitleBar"
android:windowSoftInputMode="adjustResize">
<intent-filter android:label="@string/launcher_name">
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter android:label="@string/launcher_name">
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
</intent-filter>
<intent-filter android:label="@string/launcher_name">
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="com.google.android.voicesearch.SELF_NOTE" />
<data android:mimeType="text/plain" />
</intent-filter>
</activity>

最佳答案

我终于找到了解决方案。缺少需要添加到 list 中的操作:

<action android:name="com.google.android.gm.action.AUTO_SEND" />

关于android "SELF_NOTE" Intent 与 Cordova 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33280999/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com