Android - switching between Development and Production Web Services
<p>I want to have my app switch between development and production web services without changing too much in the code (and be relatively fool proof).</p>

<p>Right now I have my web service addresses as <code>static final String</code> variables in the class that does the actual  HTTP calls and switch code in the rest of the app by using a <code>static final boolean</code>.</p>

<p>Now whereas the <code>boolean</code> is pretty convenient, I can't use it to change the web service addresses because they are themselves <code>static final</code> variables. What is the best practice for tackling this ?</p>

<p>I found some discussions on SO that directed towards using Android SDK provided <code>debug</code> variable but although it can replace the <code>boolean</code>, it doesn't solve the other problem.</p>

<p>NOTE: In case you are wondering, I'm using the web services class statically so I don't have a constructor in which I can check the <code>debug</code> variable and change variables, plus I'd also like them to be <code>static final</code>.</p>
