I have developed two android apps...when i install them on my phone to test them.. they overwrite each other. I do not want this to happen. The intent is to have both installed on the phone as separate apps.. how do i fix this? I developed them with eclipse.
As you can see from the answers, Android uses the package name as id. This id must be unique, even when you have different versions, for Android the app will be the same. So, you must change the package name so, install different apps representing different versions. Hope it helps.
Here is how you can run multiple instances of an app using Parallel Space: Open Parallel Space and tap on the apps you want to clone. Select Add to Parallel Space. Once the apps are in the Parallel Space, tap on the one you want to run.
Open the Settings app. Scroll down, tap Utilities, and tap Parallel Apps. You'll see a list of apps that you can make copies of—not every app is supported. Find the app you want to clone, and turn its toggle to the On position.
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.
I had the same problem despite the fact that package names were different between both APKs.
At the end I had to modify a GRADLE file:
\app\build.gradle
the following line:
applicationId "name.to.change"
In Android Studio 3 you will find this configuration in:
I had the same issue, turned out that I had copied one project to another to save time, and the package setting in the Manifest tag inside the AndroidManifest.xml file was the same for both apps.
Once I changed this and resolved any imports errors, the apps stopped overwriting one another on the phone.
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="xxx.yyy"
android:versionCode="1"
android:versionName="1.0" >
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With