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 9177757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:23:53+00:00 2026-06-17T17:23:53+00:00

I develop a software for multiple customers based on the same core library (which

  • 0

I develop a software for multiple customers based on the same core library (which contains the whole UI and all the business logic). If everything was simple, I would reference that library from starting projects and modify the different label in the core library with a variable.

For example :

Core library : com.test.core

package (and apk) 1 : com.test.core.customer1

apk 2 : com.test.core.customer2

Final result : some modification in the ore package depanding of the starting package (labels etc.).

I tryied to change the language on the starting package (for example package1 = fr, package2 = es) : Launch an android application with different resource file

But the drawback is really simple : if I use some Android features, like copy/paste, the wrong language will be showed.

An idea would be to configure eclipse with ant (or something like this) to modify at the compile time on the fly the values/strings.xml package when I compile customer1 or customer2 but I don’t know how to do this.

I use Eclipse Juno with applications using android >= 3.2.

Regards

  • 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-06-17T17:23:54+00:00Added an answer on June 17, 2026 at 5:23 pm

    This case can be resolved with ant.

    I downloaded ant-contrib and put it on C:\ant-contrib\ant-contrib-1.0b3.jar

    In the project I created the file specific/lm/strings.xml.

    I created the custom_rules.xml file and launch it with ant.

    It use the lm property which should be set to true. You can also use the target lm.

    <?xml version="1.0" encoding="UTF-8"?>
    <project
        name="com.test"
        default="help" >
    
        <target name="lm">
            <property name="lm" value="true"/>
        </target>
    
        <taskdef resource="net/sf/antcontrib/antcontrib.properties" >
            <classpath>
                <pathelement location="C:/ant-contrib/ant-contrib-1.0b3.jar" />
            </classpath>
        </taskdef>
    
        <if>
            <equals
                arg1="${lm}"
                arg2="true" />
            <then>
                <property name="startproject" value="specific/lm"/>
                <echo message="Build spécial LM / Projet : ${startproject}" />
            </then>
        </if>
    
        <copy file="${startproject}/strings.xml"
            tofile="res/values/strings.xml"
            overwrite="true" />
    </project>
    

    you can also use maven Skinning Android app with Maven build profiles

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

'I have to develop a software which is meant for Business Analyst of Future
I have planned to develop lead tracking software for our business which involves Customer
I am required to develop software in English and Spanish and as such all
I was trying to develop a video management software for which I was evaluating
I need to develop custom software to do surveys. Questions may be of multiple
I am using C# + winforms to develop software. I have a UserControl which
i have to develop desktop base software in C#.Net which only produces reports and
I am trying to develop a software which will take a keyboard input, consume
I am asked to develop a software which should be able to create Flow
As teams work to develop software in parallel, there are situations in which the

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.