Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App is installed twice

I have a shoppinglist App coded in Android-Studios. My app does have a splash screen. When I install the app, it is installed twice. When I uninstall one, the other one uninstalls too. I tried to delete the first intent filter on splashscreen, but then I did not have a splash screen anymore. I want my splashscreen to be remain. How to solve that? My manifest looks like this:

<?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>

like image 443
Blnpwr Avatar asked Dec 21 '16 14:12

Blnpwr


People also ask

Why does app download twice?

If you download your apps from a site rather than from your phone's storage, this site may have a problem with it. Also, you may have pressed the download button twice because the internet connection has been delayed the first time. You may also have a virus or your browser is wrong.

Can an app be installed twice?

If your phone doesn't have this feature, you can still run multiple instances of your Android apps using a third-party app. While each manufacturer has its own name for the feature—it's called Dual Messenger on Samsung, for instance—it works pretty much the same no matter the phone. Here's how to get started.

Can you install 2 of the same apps on Android?

How to Have Two of the Same Apps on Android – Third-Party Apps. If your phone doesn't have the built-in feature that lets you clone your apps, then you can use a third-party app. If the app you want to duplicate isn't available on the list, then you can also use a third-party app.


1 Answers

The app is only one.

You have simply two activities (and then 2 icons) that can work as launcher.

If you don't want, you have to remove this part in one Activity

<intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
like image 188
Gabriele Mariotti Avatar answered Sep 22 '22 14:09

Gabriele Mariotti