Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I make multiple Android apps from a single code base?
    primarykey
    data
    text
    <p>I have done this with iOS perfectly and now I need it for Android. I have <strong>one codebase</strong> that can create <strong>unlimited different apps</strong> with a simple config file change.</p> <p>Each app is created based on a complex XML config file that I included in the resources. All I make is one simple change in my strings.xml file and it points to the config file needed, which in turn makes this my project a new standalone app. Easy.</p> <pre><code>&lt;string name="xmlconfig"&gt;nike-shoes&lt;/string&gt; </code></pre> <p>But now that I have done that, how do I make the change so each app is it's own APK?</p> <p>How can I switch between apps (and uploadable apk's) easily with <strong>one codebase and one project</strong>. I have heard people say "use a library and then just create a project for each that includes it" but that gets overly complicated when you have 15+ apps and growing.</p> <p>And I've also seen people say "why not just make one app where you can switch between them all within the app" but that also is irrelevant to my project and doesn't make sense to my users. I can't explain more than that unfortunately, but the short answer is that this won't work as well.</p> <p>What I did on the iOS project I have is that I just change the Bundle ID, change the code signing identify to match, change the app name, and point to the new plist from within my main Info.plist file. BAM! Whole new app. A few simple steps that takes me less than a minute.</p> <p>How can I do this with Eclipse/Java/Android? What is the easiest way? </p> <p>A few steps is fine, as long as I am not mucking with every file to get it done.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload