in my first activity I have two intent filters. The first one is for regular access from the launcher. The second one is used when a user tries to unzip a file.
android:name=".MyApplication">
<activity
android:name=".SplashActivity"
android:label="@string/app_name"
android:icon="@drawable/ico"
android:theme="@style/Theme.Sherlock.NoActionBar"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.ALTERNATIVE"/>
<data android:mimeType="application/zip"/>
</intent-filter>
</activity>
The problem is that in the launcher I get two icons instead of one . How can I get only one icon and mantain the ability to run the activity with the second intent filter. I have tried removing (or changing to a different category)
<category android:name="android.intent.category.ALTERNATIVE"/>
Thanks
EDIT: The problems seems somehow related with Android Studio (v 0.1.6 and 0.1.7) as with Eclipse only one icon shows up.