• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Working with test/beta/production websites

23tony

Well-Known Member
I'm working on a project that communicates with a web API. I have a localhost I've been working with so far, and I have the base url defined in a configs.xml resource file:
Code:
<string name="base_url">http://10.0.2.2/</string>
The website has a test. and beta. subdomain, so a live test would need
Code:
<string name="base_url">http://test.example.com/</string>
What I'm wondering is: how do I make this something I can easily configure for different builds, other than manually changing this value for each build?
 
Back
Top Bottom