Android的图标不显示图标、Android

2023-09-06 18:25:12 作者:清漓

我使用一个Eclipse项目产生2的APK(其中一个是我的应用程序的免费版本,其他的付费版)。

I'm using one Eclipse project to generate 2 apks (one is the free version of my app, the other the paid version).

我编译一个或另一个是刚刚修改AndroidManifest文件之前做些什么(更改包的名称),然后修改我的配置文件,然​​后选择Android的工具 - >导出...

What I do before compiling one or the other is just modify the AndroidManifest file (change the package name), then modify my config file, and select Android Tools -> Export ...

不过只有一两个的apk我生成应用程序的正确的图标结束的。

However only one of the two apk's I generate end up with the correct icon for the application.

一些有趣的是,图标在应用程序中使用,并在这两个应用程序被认为是好的。它只是在手机的桌面,显示了默认的Andr​​oid图标位于应用程序图标。

Something interesting is that the icon is used inside the app, and in both apps is seen ok. Its just the app icon that sits on the "desktop" of the phone that shows the "default" Android icon.

任何想法?

推荐答案

要在启动程序可见你的主要活动应该声明这个意图过滤器:

To be visible in the launcher your main activity should declare this intent-filter:

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

也许你删除它,而编辑清单文件,你应该检查一下。希望这有助于。

Maybe you've removed it while editing your Manifest file, you should check it. Hope this helps.