1

我在 Eclipse 中有一个项目,我用 Intent 打开可能有 7 个不同的类。问题是当我在我的 HTC 手机上安装 .apk 时,我会为每个班级获得一个图标。如何制作项目,使其仅作为一个应用程序安装?/约翰·安德森

4

2 回答 2

1

确切地说,正如 mreichelt 所说,您必须从清单中声明的​​每个类中删除此行,除非您想成为主要活动:D

    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>   
于 2010-10-10T11:30:59.767 回答
0

如果您只希望从启动器启动一项活动,只需在清单中删除所有其他活动的意图过滤器即可。在这里阅读更多:http: //developer.android.com/guide/topics/fundamentals.html#ifilters

于 2010-10-10T10:29:02.447 回答