gpt4 book ai didi

java - 在 Droid 菜单中重复应用

转载 作者:行者123 更新时间:2023-12-01 05:45:42 24 4
gpt4 key购买 nike

只是想知道是否有人见过这个问题并知道可能出了什么问题。我已经构建了一个库,它在主页上有一个库,您可以在其中选择 A、B、C ... 等,然后它会打开一个页面,其中包含您选择的按钮。现在的问题是,当我将应用程序加载到手机上时,整个应用程序有一个应用程序按钮,然后每个 A、B、C... 等都有一个按钮。类,就像我可以单击其中任何一个一样,它直接从手机菜单打开。就像菜单被垃圾邮件一样,我认为人们不会欣赏这一点。任何人都知道它可能是什么。我之前制作过一个包含库类型的应用程序,但从未出现过此问题。

最佳答案

从这些其他 Activity 中删除 MAIN 和 LAUNCHER Intent 。

http://developer.android.com/guide/topics/intents/intents-filters.html

Activities that can initiate applications have filters with "android.intent.action.MAIN" specified as the action. If they are to be represented in the application launcher, they also specify the "android.intent.category.LAUNCHER" category:

 <intent-filter . . . >
<action android:name="code android.intent.action.MAIN" />
<category android:name="code android.intent.category.LAUNCHER" />
</intent-filter>

此外,还要提高接受率。

关于java - 在 Droid 菜单中重复应用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5957955/

24 4 0