每个活动的应用程序图标 [英] Application icon for each activity

查看:87
本文介绍了每个活动的应用程序图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在应用程序的两个布局中使用了Web视图,当我在手机中安装该应用程序时,可以看到布局具有Web视图的活动的单独图标.我将如何解决此问题,为什么会这样呢?请指教.

I have used web view in two of my layouts in the application and when I install the application in my phone I could see separate icons for the activities whose layouts have web view. How will i fix this issue and why does this happen so? Please advice.

推荐答案

可能的原因是清单中有几个具有MAIN(启动器)意图的活动.要对其进行修复,请将其从其中之一中删除.

Probably the reason is that you have several activities in manifest that have the MAIN, launcher intent. To fix it, remove it from one of them.

<activity
    android:name="com.example.MainActivity"
    android:label="@string/app_name">
    <intent-filter>
        <action android:name="android.intent.action.MAIN"/>

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

    <activity
        android:name="com.example.MainActivity"
        android:label="@string/app_name">
    </activity>

这篇关于每个活动的应用程序图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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