Why is the application installed twice?

When I launch Android App Studio, the cell - this application is “installed” twice: there are two applications, one of which is called “SplashScreenActivity”, and the other “Doctor Quiz” (my application), both are equal. If I delete one, the other will also delete .
Why is this happening? How to "install" only my application? (DoctorQuiz)

AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.morais.daniela.doctorquiz" > <uses-permission android:name="android.permission.INTERNET"/> <provider android:authorities="com.facebook.app.FacebookContentProviderXXXX" android:name="com.facebook.FacebookContentProvider" android:exported="true" /> <application android:allowBackup="true" android:icon="@drawable/medicine_box_icon2" android:label="@string/app_name" android:theme="@style/AppTheme" > <meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/facebook_app_id"/> <activity android:name=".Activity.SplashScreenActivity" android:configChanges="orientation|keyboardHidden|screenSize" android:label="@string/title_activity_splash_screen" android:theme="@style/FullscreenTheme"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name=".Activity.QuestionsActivity" 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=".Activity.ResultActivity" android:label="@string/title_activity_result" > <activity android:name="com.facebook.FacebookActivity" android:configChanges= "keyboard|keyboardHidden|screenLayout|screenSize|orientation" android:theme="@android:style/Theme.Translucent.NoTitleBar" android:label="@string/app_name" /> </activity> </application> </manifest> 

Screenshot
enter image description here

+15
android android-studio
source share
2 answers

The application is not installed twice. You do not look at applications. You look at the triggered actions using this <intent-filter> :

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

You have two actions with this <intent-filter> , and therefore you will have two actions in the launch pad. If you do not want to perform both of these operations in the launch pad, remove this <intent-filter> from one of them.

+49
source share

Thanks, I had the same problem ...

0
source share

All Articles