Dr. Yatish Bathla
Dr. Yatish Bathla

Reputation: 522

An application can display multiple icons in Android

I designed one Application in Android. When i upload this Application on device, it will display three icons of that application.enter image description here

Which part of Android Manifest File is responsible to display the icon.Any idea?

Upvotes: 0

Views: 633

Answers (3)

DJhon
DJhon

Reputation: 1518

See here Manifest file

                 android:icon="@drawable/ic_launcher"

And

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

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

Upvotes: 0

Gilad Haimov
Gilad Haimov

Reputation: 5857

Go to the manifest and remove the launcher intent from all activities but one

Only a single activity - the one you want opened when the user clicks the homescreen icon - should have the following intent filter:

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

Upvotes: 2

Tapa Save
Tapa Save

Reputation: 4857

See your AndroidManifest file. How many activities you have with next code:

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

You must have 3 activity for this case.

Also this is may be last package name of your project before you rename it.

Upvotes: 0

Related Questions