gpt4 book ai didi

Android 使用对话框消除完整操作

转载 作者:行者123 更新时间:2023-11-29 00:50:34 24 4
gpt4 key购买 nike

我有 2 个应用程序,它们都集成了一个包含 Activity 的包。我的问题是,当我启动任何一个应用程序时,当它调用包内的 Activity 时,它会显示一个对话框:

Complete action using:

App1

App2

我想删除这个对话框,所以它只是从它自己的集成包中启动 Activity 。

目前,我的 AndroidManifest.xml 包含包 Activity :

<intent-filter>
<action android:name="com.example.test.TestActivity" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>

最佳答案

您需要更改 <intent-filter>对于 Activity 的这两个副本之一。现在,两者都在宣传他们支持相同的操作字符串。更改一个以使用不同的操作字符串。或者,不要使用 Intent 中的操作字符串-- 使用 new Intent(this, TestActivity.class)如果 Java 代码是您的应用程序的一部分。

关于Android 使用对话框消除完整操作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3082077/

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