Skip to content Skip to sidebar Skip to footer

How To Keep Two Version Of An Android Application In The Same Device

Whenever I try to install the 2nd version, it says that it is going to replace all data from the previous version. I did the following things to avoid such situations: app names a

Solution 1:

You must have a different package name, there is no other way. I had 2 different versions of the same product (free & paid) and used: com.package.paid & com.package.free.

This means that nothing is shared between the 2 apps (DB included).

You can also use ANT scripts to build both apps from the same code base, I just changed it manually every time I needed to build a version.

Solution 2:

Make sure that you have changed the package= in the AndroidManifest.xml

Post a Comment for "How To Keep Two Version Of An Android Application In The Same Device"