Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App is installed and has two icons

I made a android app and it worked very well, but there are two icons in my device screen. I think it could be a AndroidManifest problem. Any idea what it could be?

This my AndroidManifest.xml:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="pk.aeh.ideos.taa"
android:versionCode="1"
android:versionName="1.0" >

<application
    android:icon="@drawable/icon"
    android:label="@string/app_name"
    android:theme="@android:style/Theme.NoTitleBar" >
           <activity
        android:name=".Ghinho_congviecActivity"
        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="Nhap_congviecActivity"></activity>
    <activity android:name="Sua_congviecActivity"></activity>
    <activity
        android:name=".Quizzes"
        android:launchMode="singleTask">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

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

</application>

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

like image 383
TranGia Avatar asked Nov 09 '12 06:11

TranGia


People also ask

Why do some apps have two icons?

If you are noticing duplicate icons for a single app repeatedly, its possible that the error stems from the app itself, rather than somewhere else. At this point, you should update the app (if there is one), and check if that resolves the duplicate icon error in Android.

How do I separate 2 icons that are together?

I think you're talking about a folder on your home screen. To un-merge the icons in it, tap on it once, then long press and drag any one icon out of the folder, and place it somewhere else.


1 Answers

It is. You have two of these:

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

Get rid of the one you don't want.

like image 104
323go Avatar answered Nov 05 '22 17:11

323go