Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Release several android applications with same code base

Tags:

android

Hi: I want to release multiple applications to android marketplace which are all very slightly customized based on a code base. I can't just change the package indentifier in the AndroidManifest.xml file because several other things dependet on this like action identifiers and so on. What is the best approach to release several apps based on one eclipse project with the same code base?

like image 579
Sney Avatar asked Aug 22 '10 10:08

Sney


People also ask

Is it possible to create an app for more than one version of Android?

Because the Google Play Store does not allow multiple APKs for the same app that all have the same version information, you need to ensure each APK has its own unique versionCode before you upload to the Play Store. You can configure your module-level build. gradle file to override the versionCode for each APK.

Can two apps have same package name?

No, every app should have a unique package name. If you install an app with a package name which is already used in another installed app, then it will replace it.


1 Answers

You need to create a library project and reference it from every of your apps. Latest versions of ADT plugin allow this. Go to the project properties, android page, you'll see a 'library' checkmark there. Reference to the library is also setup on the page.

like image 143
Konstantin Burov Avatar answered Nov 15 '22 04:11

Konstantin Burov