Android studio generating two applications the same way

5

I developed an apk, but from the end of the project to here he was always emulating two identical applications on my cell phone, same functions, icons. The difference from one to the other is that one has the splash and the other does not. Then when I ran the APK, I installed it on my phone and the two applications appeared. In the uninstallation I selecting one apk to uninstall the other one is also uninstalled. Has anyone gone through this?

<?xml version="1.0" encoding="utf-8"?>

<uses-permission android:name="ANDROID.PERMISSION.CALL_PHONE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-feature android:name="android.hardware.camera"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>


<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/Theme.MyTheme">


    <activity
        android:name=".MainActivity"
        android:label="WF Coleta">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

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

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

    <activity
        android:name=".SecondActivity"
        android:label="@string/title_activity_second"></activity>


    <activity
        android:name=".CarActivity"
        android:label="@string/title_activity_car"></activity>

</application>

    
asked by anonymous 30.05.2016 / 17:20

1 answer

7

Change your Manifest

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

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

    <activity android:name=".MainActivity"
              android:label="WF Projetos">
    </activity>

The project can only have a action.MAIN and category.LAUNCHER .

    
30.05.2016 / 18:13