Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

app installations overwriting each other

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.

like image 538
user474026 Avatar asked Oct 13 '10 03:10

user474026


People also ask

How can I install a different version of an Android app APK without overwriting the installed version?

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.

How do I install apps only in parallel space?

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.

Can you install 2 of the same apps on Android?

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.

Can you have 2 of the same apps?

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.


2 Answers

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:

enter image description here

like image 183
omotto Avatar answered Oct 13 '22 00:10

omotto


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" >
like image 38
vinnyh Avatar answered Oct 13 '22 00:10

vinnyh