Ich habe eine Einkaufsliste App in Android-Studios codiert. Meine App hat einen Begrüßungsbildschirm. Wenn ich die App installiere, wird sie zweimal installiert. Wenn ich eins entferne, deinstalliert das andere auch. Ich habe versucht, den ersten Intent-Filter auf dem Begrüßungsbildschirm zu löschen, aber dann hatte ich keinen Begrüßungsbildschirm mehr. Ich möchte, dass mein Splashscreen bleibt. Wie löst man das? Mein Manifest sieht wie folgt aus:App ist zweimal installiert
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.projects.buylist">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:name=".SplashScreen"
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=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
oder anstatt sie zu entfernen Begrüßungsbildschirm läuft, können Sie es 'default' statt' LAUNCHER' machen und die Nutzung Aktivitätsname anstelle von 'MAIN' um Verwechslungen zu vermeiden –