Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6532065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T09:57:16+00:00 2026-05-25T09:57:16+00:00

Whats the best way to deploy several customized versions of a Android application? Currently

  • 0

Whats the best way to deploy several customized versions of a Android application?

Currently I have a script to exchange the resource folder for getting a customized version of my app. It works great, but all custom versions still have the same package name in the AndroidManifest.xml. Therefore it is not possible to install two customized versions of the app at the same time.

This is one solution for this problem, but that has to be done by hand

Can you think of a more easy solution, or how this could be built into a skript?

(btw: it is not for a porn/spam/whatever app, not even a paid one)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T09:57:17+00:00Added an answer on May 25, 2026 at 9:57 am

    Perhaps the built-in Android “library” concept was not fully baked at the time of the original post, but it may be the preferred method as of 2011. Follow these steps for an ant build:

    Starting from a working app (let’s call it directory “myOrigApp”, package com.foo.myapp), just add this line to “default.properties” to make it a library:

    android.library=true
    

    Now create a new app in a sibling directory in any way you prefer (let’s call it directory “sibling”, package com.foo.myVariant). Using Intellij Idea, for example, create a project ‘from scratch’ with directory ‘sibling’ and it will create all the files/directories you would normally need.

    In that new, sibling directory edit “default.properties” to add the dependency:

    android.library.reference.1=../myOrigApp
    

    Copy over the Manifest from the original dir:

    cd sibling
    cp ../myOrigApp/AndroidManifest.xml  ../myOrigApp/local.properties ../myOrigApp/build.properties  .
    

    Edit that copied Manifest file to change its package name to your new variant, “com.foo.myVarient”; that’s the only change.

    If you just run the ant build scripts, you may be done. (I had to just set up signing keys.)

    If you want to set up an IDE like Idea to have the library project as a dependent of the variant project, follow these steps to add a library project to the variant project (assumes you already have a project set up for both):

    • Open the original project, bring up Project Settings, select your Facet and check “Is Library Project” and save.
    • Open the variant project, bring up Project Settings, select Modules
    • Add a module
    • Select “Import existing module”
    • Browse to the Original directory (myOrigApp) and select its .iml file (IntelliJ project source file)
    • Click “Finish.” (The library project is added as a module within the variant project.)
    • In the modules list click over the Variant project to select it.
    • On the right hand side select the “Dependencies” tab.
    • Click “Add…”
    • Choose “Module dependency…” (A list should appear that includes the name of the module/library you previously added to the project–perhaps the only entry in the list).
    • Select the library project you added and press OK. (It will be added to the list of dependencies of your project.)
    • Press OK to finish configuring the project. (You should see 2 modules, with the library’s resources and classes available and recognized in the Variant project.)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What is the best way to deploy a heavily customized SharePoint solution from test
Simply, what's the best (quickest) way to deploy an application (EAR), in a development
What's the best way to deploy a stateless Java EE 6 application in a
Whats the best way to deploy a webpart in WSS3 or MOSS2007 which has
How/what is the best way to deploy an application written in bcb6 using mysql
Whats the best way to check if a username exists in a MySQL table?
Whats the best way to read/write file properties (like author, description, etc) in C#?
Whats the best way to go about upgrading a project with major design changes...in
Whats the best way to zip up files using C#? Ideally I want to
Whats the best way to get the current time (HH:MM:SS) using Objective-C. I would

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.