sunilraut
sunilraut

Reputation: 31

How to avoid multiple instances of same app

Multiple instances of the app is being created when ever I click on the application icon .My AndroidManifest.xml is as follows .

<application
        android:name="com.kez.customgallery.UILApplication"
        android:allowBackup="true"
        android:icon="@drawable/logo"
        android:label="@string/app_name"
        android:launchMode="singleInstance"
        android:screenOrientation="portrait"
        android:theme="@style/AppBaseTheme" >

Upvotes: 0

Views: 200

Answers (2)

amar
amar

Reputation: 147

Put android:launchMode="singleTop".

Upvotes: 2

Akash
Akash

Reputation: 971

Change package Name in your AndroidManifest.xml file

Upvotes: 0

Related Questions