Android的图标不显示 [英] Android icon doesn't appear

查看:195
本文介绍了Android的图标不显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用一个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.

这篇关于Android的图标不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆