Note that there are some explanatory texts on larger screens.

plurals
  1. POCustom location of resources folder
    text
    copied!<p>I will start with a quick "Hello" since it's my first post on stackoverflow. :) I'm also new to Java and Android so please, be gentle ;)</p> <p>And now let's get to the point. I'm writing an application which will be published as two independent apps based on two different remote backends and with different looks. I believe I need three things to achieve that:</p> <ol> <li>a few separated classes responsible for exchanging data and information with backend and serving a common interface for the rest of the app,</li> <li>two dedicated manifest files (one for each app),</li> <li>dedicated "res/" folders</li> </ol> <p>ad 1. </p> <p>I just designed interfaces implemented by classes closed in packages - one for each backend. Now all I have to do is changing one package including statement before building the app. Is there a better way to do it? I mean - can I somehow dynamically decide which package to include based on some configuration?</p> <p>ad 2.</p> <p>While writing this post I just figured that this is actually not necessary since all data in manifest come from resources. If I switch res/ folder - I'm done.</p> <p>ad 3. </p> <p>This is actually the main issue I need help with. All I can figure right now is to have to folders named like "res1/" and "res2/" and "renaming" one of them to "res/" before building each application. Is there any way of customizing the location of resources? Maybe you have some other idea how to do the job? I will be very grateful for any help.</p>
 

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